Function at 0x404ff0
Capabilities:
Create thread
Get disk information

Disassembly:
sub esp, 0x6b4
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov ecx, ebp
mov dword [esp + 0x20], esi
call fcn.00405300
mov edi, dword [ebp + 0x10]
mov eax, esi
and eax, edi
mov ecx, 2
not eax
and eax, esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov edi, 1
shl edi, cl
test eax, edi
je 0x40528b
mov bl, cl
mov ecx, ebp
add bl, 0x41
push ebx
call fcn.00405820
mov esi, eax
cmp esi, 1
mov dword [esp + 0x1c], esi
je 0x40505b
cmp esi, 2
jne 0x40505f
or dword [esp + 0x10], edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x198]
cmp esi, 2
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x298]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x498]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x398]
rep stosd dword es:[edi], eax
jne 0x405151
lea eax, [esp + 0x498]
lea ecx, [esp + 0x298]
push eax
lea edx, [esp + 0x19c]
push ecx
push edx
push ebx
call fcn.00404ac0
add esp, 0x10
lea eax, [esp + 0x398]
mov ecx, ebp
push eax
push ebx
call fcn.00404c00
mov al, byte [esp + 0x398]
test al, al
je 0x405120
lea edi, [esp + 0x398]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
jmp 0x4051a2
lea edi, [esp + 0x498]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
jmp 0x4051a2
lea ecx, [esp + 0x98]
lea edx, [esp + 0x298]
push ecx
lea eax, [esp + 0x19c]
push edx
push eax
test esi, esi
push ebx
jne 0x40519a
call fcn.00406090
mov al, byte [esp + 0xa8]
add esp, 0x10
test al, al
jne 0x4051a2
lea ecx, [esp + 0x98]
lea edx, [esp + 0x298]
push ecx
lea eax, [esp + 0x19c]
push edx
push eax
push ebx
call fcn.00404ac0
add esp, 0x10
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
add ecx, 0x41
push ecx
push 0x437184
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x70]
add esp, 0xc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push ebx
call fcn.00405df0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push ecx
push ebx
mov ecx, ebp
stosw word es:[edi], ax
call fcn.00405d90
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov ecx, 0x4b
xor eax, eax
lea edi, [esp + 0x598]
lea edx, [esp + 0x98]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x34]
push esi
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0x2a4]
push ecx
lea eax, [esp + 0x1a8]
push edx
lea ecx, [esp + 0x2ac]
push eax
lea edx, [esp + 0x1b0]
push ecx
lea eax, [esp + 0x80]
push edx
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
lea eax, [esp + 0x5c4]
push str._d_t_s_t_s_t_s_t_s_t_s_s_s_s_t_d_t_s_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x34
lea ecx, [esp + 0x598]
push 0
push eax
push ecx
mov ecx, ebp
call fcn.00405e60
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, 0x20
mov dword [esp + 0x18], ecx
jl 0x40502f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4052d1
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
push 0
push eax
push 0x4303b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4052d1
push eax
call fcn.00419150
mov ecx, eax
call fcn.0041b350
push 1
push 0
push 0x438a68
mov ecx, ebp
mov dword [ebp + 0x10], esi
call fcn.00405e60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6b4
ret