Function at 0x4029c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x458080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x42a36c
push esi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0x13], 2
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call edi
add esp, 8
test eax, eax
jne 0x402a19
mov byte [ebp - 0x14], 9
jmp 0x402a45
push str.FAT32
push esi
call edi
add esp, 8
test eax, eax
jne 0x402a2e
mov byte [ebp - 0x14], 0xa
jmp 0x402a45
push 0x42a380
push esi
call edi
add esp, 8
test eax, eax
jne 0x402c2c
mov byte [ebp - 0x14], 0xc
mov esi, dword [sym.imp.msvcrt.dll_wcstoul]
push 0xa
push 0
push dword [ebp - 0x84]
call esi
add esp, 0xc
mov edi, eax
push 0xa
push 0
push dword [ebp - 0x7c]
call esi
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, eax
mov ecx, edi
call fcn.00401500
test al, al
jne 0x402a9c
push dword [ebp - 0x7c]
push edi
push str.Failed_to_open_disk__lu_part__lu_n
call fcn.00402250
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419bef
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x402aad
push 0xa
push 0
push ebx
call esi
add esp, 0xc
mov dword [ebp - 8], eax
push dword [0x4580e8]
lea edx, [ebp - 0x14]
mov ecx, 0x42a364
push dword [0x1a2f9f4]
call fcn.0040ae60
add esp, 8
test eax, eax
jne 0x402bbd
test byte [ebp - 0x14], 3
je 0x402b4e
mov ecx, dword [0x1a2f9e0]
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
mov edx, 0x5a
call fcn.00415250
add esp, 0x14
test eax, eax
jne 0x402bbd
mov esi, dword [0x1a2f9e0]
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov ecx, dword [ebp - 0x80]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x402b2d
mov edx, dword [ebp - 0x7c]
nop dword [eax]
add ecx, dword [eax + 8]
adc edx, dword [eax + 0xc]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x402b20
lea eax, [ebp - 0x78]
mov dword [ebp - 0x5c], ecx
push eax
sub esp, 8
mov edx, 0x5a
mov ecx, esi
push 0
push 0
call fcn.004157c0
add esp, 0x14
test eax, eax
jne 0x402bbd
mov ecx, dword [0x1a2f9e0]
test ecx, ecx
je 0x402b5d
call fcn.00414d50
mov eax, dword [0x1a2f9f4]
xorps xmm0, xmm0
mov dword [0x1a2f9e0], 0
movlpd qword [0x1a2f9e8], xmm0
test eax, eax
je 0x402b85
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [0x1a2f9f0]
mov dword [0x1a2f9f4], 0
test eax, eax
je 0x402ba4
cmp eax, 0xffffffff
je 0x402ba4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419bef
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x1a2f9e0]
test ecx, ecx
je 0x402bcc
call fcn.00414d50
mov eax, dword [0x1a2f9f4]
xorps xmm0, xmm0
mov dword [0x1a2f9e0], 0
movlpd qword [0x1a2f9e8], xmm0
test eax, eax
je 0x402bf4
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [0x1a2f9f0]
mov dword [0x1a2f9f4], 0
test eax, eax
je 0x402c13
cmp eax, 0xffffffff
je 0x402c13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419bef
mov esp, ebp
pop ebp
ret
push esi
push str.Unsupported_format__s_n
call fcn.00401010
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
pop esi
pop ebx
call fcn.00419bef
mov esp, ebp
pop ebp
ret