Function at 0x4053e0
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41d324]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
shl eax, 2
xor edi, edi
push eax
push 8
push dword [0x41d32c]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x40545e
mov edi, dword [ebp - 0x21c]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x41d32c]
call esi
mov dword [ebp - 0x208], eax
test eax, eax
je 0x405440
xor edi, edi
mov eax, dword [0x41d324]
shl eax, 2
push eax
push 8
push dword [0x41d32c]
mov dword [ebp - 0x218], eax
call esi
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x4054a5
mov edi, dword [ebp - 0x218]
push 0x80
call ebx
push edi
push 8
push dword [0x41d32c]
call esi
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x405487
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x210], 0x1a
mov eax, 0x41
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x20c], eax
lea edx, [eax - 0x27]
jmp 0x4054d6
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x228], edi
test cl, 1
je 0x4056f7
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push str.__hc:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
mov word [ebp - 0x1f8], cx
cmp eax, 2
je 0x405584
cmp eax, 3
je 0x405584
cmp eax, 6
je 0x405584
cmp eax, 4
jne 0x405655
cmp dword [0x41d2f8], ecx
jne 0x405655
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x41d32c]
mov dword [ebp - 0x224], eax
call esi
mov edi, eax
test edi, edi
jne 0x4055cd
push 0x80
call ebx
push dword [ebp - 0x224]
push 8
push dword [0x41d32c]
call esi
mov edi, eax
test edi, edi
je 0x405565
jmp 0x4055cd
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x41d32c]
mov dword [ebp - 0x224], eax
call esi
mov edi, eax
test edi, edi
jne 0x4055cd
nop
push 0x80
call ebx
push dword [ebp - 0x224]
push 8
push dword [0x41d32c]
call esi
mov edi, eax
test edi, edi
je 0x4055b0
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push edi
push fcn.00405030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x208]
mov edi, dword [ebp - 0x214]
test eax, eax
je 0x40565b
mov edx, dword [ebp - 0x220]
inc edi
mov dword [ebp - 0x214], edi
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x220], edx
cmp edi, dword [0x41d324]
jne 0x40565b
push 0xffffffffffffffff
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
mov ecx, dword [eax + edx*4]
push ecx
mov dword [eax + edx*4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x214], edi
mov ecx, dword [ebp - 0x208]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x20c]
shr dword [ebp - 0x218], 1
inc eax
sub edx, 1
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], edx
jne 0x4054d0
mov ebx, dword [ebp - 0x21c]
test edi, edi
je 0x4056c4
mov eax, edi
mov edx, ebx
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x4056a0
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x405691
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x4056c4
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x4056b6
mov eax, dword [ebp - 0x208]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x41d32c]
call esi
push ebx
push 0
push dword [0x41d32c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406224
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
jmp 0x405667