Function at 0x4053a0
Capabilities:
Create thread
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1c], 0
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
shl eax, 2
push eax
push 8
push dword [0x422334]
mov dword [ebp - 0x18], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40540b
mov edi, dword [ebp - 0x18]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x422334]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x4053f0
xor edi, edi
mov eax, dword [ebp - 0x34]
shl eax, 2
push eax
push 8
push dword [0x422334]
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x40544b
mov edi, dword [ebp - 0x14]
nop dword [eax]
push 0x80
call ebx
push edi
push 8
push dword [0x422334]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x405430
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 0x405473
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
test cl, 1
je 0x405649
push dword [ebp - 8]
lea eax, [ebp - 0x248]
push str.__hc:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
mov word [ebp - 0x23c], cx
cmp eax, 2
je 0x40551c
cmp eax, 3
je 0x40551c
cmp eax, 6
je 0x40551c
cmp eax, 4
jne 0x4055c8
cmp dword [0x422304], ecx
jne 0x4055c8
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x422334]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x40555e
nop dword [eax]
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x422334]
call esi
mov edi, eax
test edi, edi
je 0x405500
jmp 0x40555e
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 8
push dword [0x422334]
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
test edi, edi
jne 0x40555e
push 0x80
call ebx
push dword [ebp - 0x20]
push 8
push dword [0x422334]
call esi
mov edi, eax
test edi, edi
je 0x405544
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push edi
push fcn.00404fd0
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 0x4055cb
mov edx, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x10], edi
mov dword [ecx + edx*4], eax
inc edx
mov dword [ebp - 0x1c], edx
cmp edi, dword [ebp - 0x34]
jne 0x4055cb
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 - 0x1c], 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 0x405470
mov ebx, dword [ebp - 0x18]
test edi, edi
je 0x405623
mov eax, edi
mov edx, ebx
nop
mov esi, dword [ecx]
lea ecx, [ecx + 4]
test esi, esi
je 0x4055ff
mov dword [edx], esi
add edx, 4
dec eax
test eax, eax
jne 0x4055f0
push 0xffffffffffffffff
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x405623
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x405615
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
push 0
push dword [0x422334]
call esi
push ebx
push 0
push dword [0x422334]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
jmp 0x4055d1