Function at 0x405a20
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push 0x14
push 8
push dword [0x4236f4]
xor edi, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
test eax, eax
jne 0x405a75
push 0x80
call ebx
push 0x14
push 8
push dword [0x4236f4]
call esi
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x405a57
xor edi, edi
mov eax, dword [0x4236ec]
shl eax, 2
push eax
push 8
push dword [0x4236f4]
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x405ab0
mov edi, dword [ebp - 0x14]
push 0x80
call ebx
push edi
push 8
push dword [0x4236f4]
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x405a95
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0xc], 0x1a
mov eax, 0x41
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
lea edx, [eax - 0x27]
jmp 0x405ad3
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test cl, 1
je 0x405cab
push dword [ebp - 8]
lea eax, [ebp - 0x224]
push str.__hc:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
mov word [ebp - 0x218], cx
cmp eax, 2
je 0x405b7c
cmp eax, 3
je 0x405b7c
cmp eax, 6
je 0x405b7c
cmp eax, 4
jne 0x405c2b
cmp dword [0x423280], ecx
jne 0x405c2b
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x4236f4]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x405bbe
nop dword [eax]
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x4236f4]
call esi
mov edi, eax
test edi, edi
je 0x405b60
jmp 0x405bbe
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x4236f4]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x405bbe
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x4236f4]
call esi
mov edi, eax
test edi, edi
je 0x405ba4
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push edi
push fcn.00405470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x405c2e
mov edx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x10], edi
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x18], edx
cmp edi, dword [0x4236ec]
jne 0x405c2e
push 0xffffffffffffffff
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 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 - 0x24]
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shr dword [ebp - 0x14], 1
inc eax
sub edx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
jne 0x405ad0
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x405c85
mov eax, edi
mov edx, ebx
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x405c61
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x405c52
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x405c85
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x405c77
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x4236f4]
call esi
push ebx
push 0
push dword [0x4236f4]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
jmp 0x405c34