Function at 0x47a520
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x574a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24c], ecx
push 0x400
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004173b0
add esp, 0xc
push 0x800
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [0x578c7c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47a571
mov al, 1
jmp 0x47a7ee
xor eax, eax
mov word [ebp - 0x228], ax
push 0x206
push 0
lea ecx, [ebp - 0x226]
push ecx
call fcn.004cb660
add esp, 0xc
push 0x104
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x578c80]
test eax, eax
jne 0x47a5bb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x47a7ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a5d5
xor al, al
jmp 0x47a7ee
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00485e90
add esp, 4
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004cb660
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a64f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00485e9b
add esp, 4
xor al, al
jmp 0x47a7ee
mov edx, dword [0x52ac90]
mov dword [ebp - 0x14], edx
mov ax, word [0x52ac94]
mov word [ebp - 0x10], ax
push 0x208
call fcn.00485e90
add esp, 4
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x1c]
mov cx, word [eax]
mov word [ebp - 0x14], cx
push 0x104
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a73f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x47a6cc
mov byte [ebp - 0x15], 0
jmp 0x47a7b8
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00485e9b
add esp, 4
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00485e90
add esp, 4
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47a73f
mov byte [ebp - 0x15], 0
jmp 0x47a7b8
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.004cb26c
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.004cf994
add esp, 0xc
test eax, eax
jne 0x47a795
mov edx, dword [ebp - 8]
lea eax, [ebp + edx*2 - 0x228]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x52ac98
mov edx, dword [ebp + 0xc]
push edx
call fcn.0047a830
add esp, 0x10
mov byte [ebp - 0x15], 1
jmp 0x47a7b8
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x47a7aa
jmp 0x47a795
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
test ecx, ecx
jne 0x47a68b
mov edx, dword [ebp - 4]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
push eax
call fcn.00485e9b
add esp, 4
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x248]
push edx
call fcn.00485e9b
add esp, 4
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ca80c
mov esp, ebp
pop ebp
ret 8