Function at 0x405b00
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x424774]
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 [0x42477c]
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 0x405b7e
mov edi, dword [ebp - 0x21c]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x42477c]
call esi
mov dword [ebp - 0x208], eax
test eax, eax
je 0x405b60
xor edi, edi
mov eax, dword [0x424774]
shl eax, 2
push eax
push 8
push dword [0x42477c]
mov dword [ebp - 0x218], eax
call esi
mov dword [ebp - 0x21c], eax
test eax, eax
jne 0x405bc5
mov edi, dword [ebp - 0x218]
push 0x80
call ebx
push edi
push 8
push dword [0x42477c]
call esi
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x405ba7
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 0x405bf6
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x228], edi
test cl, 1
je 0x405e17
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 0x405ca4
cmp eax, 3
je 0x405ca4
cmp eax, 6
je 0x405ca4
cmp eax, 4
jne 0x405d75
cmp dword [0x424308], ecx
jne 0x405d75
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42477c]
mov dword [ebp - 0x224], eax
call esi
mov edi, eax
test edi, edi
jne 0x405ced
push 0x80
call ebx
push dword [ebp - 0x224]
push 8
push dword [0x42477c]
call esi
mov edi, eax
test edi, edi
je 0x405c85
jmp 0x405ced
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x42477c]
mov dword [ebp - 0x224], eax
call esi
mov edi, eax
test edi, edi
jne 0x405ced
nop
push 0x80
call ebx
push dword [ebp - 0x224]
push 8
push dword [0x42477c]
call esi
mov edi, eax
test edi, edi
je 0x405cd0
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push edi
push fcn.004056e0
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 0x405d7b
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 [0x424774]
jne 0x405d7b
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 0x405bf0
mov ebx, dword [ebp - 0x21c]
test edi, edi
je 0x405de4
mov eax, edi
mov edx, ebx
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x405dc0
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x405db1
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x405de4
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x405dd6
mov eax, dword [ebp - 0x208]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x42477c]
call esi
push ebx
push 0
push dword [0x42477c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406a54
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x208]
jmp 0x405d87