Function at 0x10031380
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 0x1004dd01
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 0x100316dc
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 0x100316dc
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.100028f0
push 0xa
mov eax, str.microsoft
lea ecx, [esp + 0x48]
mov dword [esp + 0x68c], ebx
call fcn.10002650
push 0xa
mov eax, str._lock_back
lea ecx, [esp + 0x48]
call fcn.10002650
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp dword [esp + 0x58], edi
jae 0x1003145c
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 0x1003149c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x58], edi
jb 0x100316dc
mov ecx, dword [esp + 0x44]
push ecx
call fcn.10032d10
add esp, 4
jmp 0x100316dc
lea edx, [esp + 0x14]
push edx
push ebx
push 0x10061bb0
push 0x10032550
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 0x10054930
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.1003664d
lea eax, [esp + 0x21c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031501
sub eax, edx
jne 0x10031544
push 0x10054c18
push 0x10054c1c
push str.rosof
push 0x10054c28
push 0x10054c2c
push 0x10053f98
push 0x10054c30
lea eax, [esp + 0x228]
push str._s_s_s_s_s_s_s
push eax
call fcn.1003664d
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.10037db0
push 0x24
lea ecx, [esp + 0x284]
push 0x100535ec
push ecx
call fcn.10037ec0
add esp, 0x18
push 0x24
mov ebx, 0x10053650
lea edi, [esp + 0x278]
call fcn.1000f400
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.100028f0
mov eax, edi
mov byte [esp + 0x688], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100315e2
sub eax, edx
push eax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x64]
call fcn.10002650
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x1003160b
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 0x10031687
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 0x100316ca
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x100316ca
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.10031a40
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 0x10031e70
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10061bb4], eax
call fcn.10031700
call fcn.100318b0
lea ecx, [esp + 0x60]
call fcn.10002ed0
lea ecx, [esp + 0x44]
call fcn.10002ed0
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.10034caa
mov esp, ebp
pop ebp
ret