Function at 0x409360
Capabilities:
Create thread
Get disk information
Get disk size
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12e4
call fcn.004301c0
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x12e0], ecx
mov dword [ebp - 0xc], 0x3a0020
mov dword [ebp - 8], 0x5c
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
xor ebx, ebx
mov dword [ebp - 0x12d8], ecx
nop
test cl, 1
je 0x409740
lea eax, [ebx + 0x41]
mov word [ebp - 0xc], ax
movzx eax, ax
push eax
lea eax, [ebp - 0x210]
push str.___c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
cmp edi, 2
je 0x4093e8
cmp edi, 3
je 0x4093e8
cmp edi, 4
jne 0x40973a
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x121c], 0
push eax
lea eax, [ebp - 0x1220]
mov dword [ebp - 0x1214], 0
push eax
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1220], 0
push eax
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x1218], 0
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov eax, dword [ebp - 0x1218]
mul dword [ebp - 0x1214]
push 0
push dword [ebp - 0x121c]
push edx
push eax
call fcn.0042fe00
push 0
push 0x40000000
push edx
push eax
call fcn.00447c00
push edx
push eax
push 0x455ee0
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
push 0x1004
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x12dc], eax
mov dword [ebp - 0x1258], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x1248], eax
lea eax, [ebp - 0x125c]
push eax
push 0
push 0x104d
push dword [0x47ea94]
mov dword [ebp - 0x125c], 1
mov dword [ebp - 0x1244], 0x80
mov dword [ebp - 0x1254], 0
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x409521
lea eax, [ebp - 0x210]
mov dword [ebp - 0x12cc], 0
mov dword [ebp - 0x12c0], eax
lea eax, [ebp - 0x12d4]
push eax
push dword [ebp - 0x12dc]
push 0x1074
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi*4 + 0x456140]
mov dword [ebp - 0x1284], eax
lea eax, [ebp - 0x1298]
push eax
push dword [0x4802b0]
mov dword [ebp - 0x1290], 1
push 0x1074
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x125c]
mov dword [ebp - 0x1254], 2
push eax
push dword [0x4802b0]
mov dword [ebp - 0x1248], esi
push 0x1074
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp - 0x1214]
push 0x455eec
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1290], 3
lea eax, [ebp - 0x1298]
mov dword [ebp - 0x1284], esi
push eax
push dword [0x4802b0]
push 0x1074
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x125c]
mov dword [ebp - 0x1254], 4
push eax
push dword [0x4802b0]
mov dword [ebp - 0x1248], 0x455ef4
push 0x1074
push dword [0x47ea94]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0x40960f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x20
call fcn.0042f6ab
mov esi, eax
lea ecx, [ebp - 0x210]
xorps xmm0, xmm0
lea edx, [ecx + 2]
add esp, 4
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409640
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403670
mov byte [esi + 0x18], 0
mov eax, dword [ebp - 0x1214]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x19], 0
cmp edi, 4
jne 0x40967c
lea ecx, [ebp - 0xc]
call fcn.00409dd0
push dword [ebp - 0x1214]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1210]
push 0x455efc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1210]
push eax
push 0
push 0x463
push dword [0x4806e8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x4802b0]
lea eax, [eax*4 + 0x47feb0]
push eax
push 4
push esi
push fcn.00408180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4802b0]
mov esi, dword [ebp - 0x12e0]
lea edx, [ecx*4 + 0x4802b8]
mov dword [edx], eax
test esi, esi
je 0x4096fe
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ecx, dword [0x4802b0]
push dword [ecx*4 + 0x4802b8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x4802b0]
mov ecx, edx
shl ecx, 4
mov eax, dword [edx*4 + 0x47feb0]
inc edx
inc dword [0x47faac]
mov dword [ecx + 0x47ea98], eax
mov dword [ecx + 0x47ea9c], 0
mov dword [0x4802b0], edx
mov ecx, dword [ebp - 0x12d8]
shr ecx, 1
inc ebx
mov dword [ebp - 0x12d8], ecx
cmp ebx, 0x20
jl 0x4093a0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f23c
mov esp, ebp
pop ebp
ret