Function at 0x10031300
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 0x1004df41
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 0x1003165c
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 0x1003165c
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 0x100313dc
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 0x1003141c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x58], edi
jb 0x1003165c
mov ecx, dword [esp + 0x44]
push ecx
call fcn.10032f50
add esp, 4
jmp 0x1003165c
lea edx, [esp + 0x14]
push edx
push ebx
push 0x10061bb0
push 0x10032450
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 0x1005498c
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.1003688d
lea eax, [esp + 0x21c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10031481
sub eax, edx
jne 0x100314c4
push 0x10054c70
push 0x10054c74
push str.rosof
push 0x10054c80
push 0x10054c84
push 0x10053f78
push 0x10054c88
lea eax, [esp + 0x228]
push str._s_s_s_s_s_s_s
push eax
call fcn.1003688d
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.10037ff0
push 0x24
lea ecx, [esp + 0x284]
push 0x100535d4
push ecx
call fcn.10038100
add esp, 0x18
push 0x24
mov ebx, 0x10053638
lea edi, [esp + 0x278]
call fcn.1000f070
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 0x10031562
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 0x1003158b
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 0x10031607
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 0x1003164a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1003164a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.10031980
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 0x10031db0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10061bb4], eax
call fcn.10031680
call fcn.10031830
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.10034eea
mov esp, ebp
pop ebp
ret