Function at 0x4053cf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f8
mov eax, dword [0x423600]
push ebx
push esi
push edi
push 1
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [0x4237c4], ebx
mov dword [0x420cf8], ecx
cmp byte [eax], bl
mov dword [ebp - 8], ebx
jne 0x405405
mov eax, ecx
jmp 0x405823
push 0x7c
push eax
call fcn.00414320
pop ecx
cmp eax, ebx
pop ecx
je 0x40541e
inc dword [0x4237c4]
push 0x7c
inc eax
jmp 0x405407
mov eax, dword [0x423600]
mov dword [ebp - 4], eax
mov eax, dword [0x420cac]
cmp eax, ebx
je 0x405478
cmp dword [0x423248], 3
jne 0x40544d
cmp dword [0x423258], ebx
je 0x40544d
mov ecx, dword [0x4237c4]
add ecx, ecx
movzx ecx, cx
jmp 0x405454
movzx ecx, word [0x4237c4]
shl ecx, 0x10
push ecx
push ebx
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x402
push dword [0x420cac]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x423248]
cmp eax, ebx
jne 0x4054d9
mov esi, 0x423820
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.00413bb0
lea eax, [ebp - 0x120]
push 0x420d78
push eax
call fcn.00403d6d
push str.ic30
push esi
call fcn.00403d6d
push esi
call fcn.00404425
push dword [0x420d28]
lea eax, [ebp - 0x120]
push eax
call fcn.004014ac
add esp, 0x24
test eax, eax
jne 0x4055fc
xor eax, eax
jmp 0x405823
cmp eax, 3
jne 0x4055fc
cmp dword [0x423258], ebx
je 0x4055fc
mov al, byte [0x423620]
push 0x41d420
mov byte [ebp - 0x120], al
lea eax, [ebp - 0x120]
push eax
xor edi, edi
mov byte [ebp - 0x11f], bl
call fcn.00413bc0
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4055fc
lea eax, [ebp - 0x120]
push eax
call fcn.00403922
test eax, eax
jne 0x405550
push dword [0x420d28]
push 0x13
call fcn.004048f6
pop ecx
cmp eax, 2
pop ecx
jne 0x40552a
jmp 0x4054d2
cmp dword [0x423258], ebx
jle 0x4055f4
cmp edi, ebx
je 0x4055b6
mov eax, dword [0x41d238]
lea ecx, [edi + 1]
push ecx
mov esi, eax
push eax
lea eax, [ebp - 0x5f8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [0x420d28]
lea eax, [ebp - 0x5f8]
mov dword [0x41d238], eax
lea eax, [ebp - 0x120]
push 0x11
mov dword [0x420ce0], eax
call fcn.004048f6
add esp, 0x14
cmp eax, 2
mov dword [0x41d238], esi
je 0x4054d2
push 0x41d3ec
push ebx
jmp 0x4055c1
push 0x41d3ec
push dword [0x423978]
call fcn.004148c6
pop ecx
cmp eax, ebx
pop ecx
je 0x4054d2
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040507b
pop ecx
test eax, eax
pop ecx
je 0x4054d2
inc edi
cmp edi, dword [0x423258]
jl 0x40555c
mov eax, dword [0x420d04]
mov dword [ebp - 8], eax
push 0x7c
push dword [ebp - 4]
call fcn.00414320
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x405820
mov esi, edi
lea eax, [ebp - 0x42c]
sub esi, dword [ebp - 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push esi
push dword [ebp - 4]
push eax
call fcn.00413eb0
add esp, 0xc
mov byte [ebp + esi - 0x42c], bl
cmp byte [ebp - 0x42c], 0x3b
je 0x4057a4
lea eax, [ebp - 0x42c]
push 0x41d3f0
push eax
call fcn.004148c6
lea eax, [ebp - 0x42c]
push eax
call fcn.00413dd0
lea esi, [ebp + eax - 0x42b]
lea eax, [ebp - 0x530]
push 0x423820
push eax
call fcn.00413bb0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.00403d6d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040524c
add esp, 0x34
test eax, eax
je 0x4054d2
lea eax, [ebp - 0x42c]
push eax
call fcn.004043ac
test eax, eax
pop ecx
je 0x405741
cmp dword [0x420cb8], ebx
lea eax, [ebp - 0x224]
push eax
jne 0x4056f4
call fcn.00413dd0
inc eax
inc eax
push eax
mov dword [0x420cc0], eax
call fcn.004132a2
pop ecx
mov dword [0x420cb8], eax
pop ecx
mov byte [eax], bl
jmp 0x40571c
call fcn.00413dd0
mov ecx, dword [0x420cc0]
lea eax, [ecx + eax + 2]
push eax
mov dword [0x420cc0], eax
push dword [0x420cb8]
call fcn.0041450a
add esp, 0xc
mov dword [0x420cb8], eax
lea eax, [ebp - 0x224]
push eax
push dword [0x420cb8]
call fcn.00413bc0
push 0x41d3ec
push dword [0x420cb8]
call fcn.00413bc0
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
je 0x405787
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.00404bf3
add esp, 0x1c
test eax, eax
je 0x4054d2
push 1
pop esi
cmp dword [ebp - 0xc], esi
jne 0x4057d2
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov dword [0x420d08], esi
jmp 0x4057d2
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
lea eax, [ebp - 0x224]
push ebx
push eax
lea eax, [ebp - 0x42b]
push eax
call fcn.0040524c
add esp, 0x18
test eax, eax
je 0x4057d2
lea eax, [ebp - 0x224]
push eax
call fcn.00404425
pop ecx
mov eax, dword [0x420cac]
inc dword [ebp - 8]
cmp eax, ebx
je 0x4057ee
push ebx
push dword [ebp - 8]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x224]
push eax
push dword [0x4237b4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea esi, [edi + 1]
mov dword [ebp - 4], esi
call fcn.004039c7
cmp dword [0x420538], ebx
jne 0x4054d2
push 0x7c
push esi
jmp 0x405601
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret