Function at 0x479fe0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5239f7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [esi], ax
jne 0x47a044
xor ecx, ecx
jmp 0x47a05f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a050
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.00407750
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.00430460
add esp, 8
test al, al
je 0x47a3e9
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov ecx, dword [ebp - 0x22c]
cmovae eax, dword [ebp - 0x23c]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x47a149
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407cc0
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x47a132
cmp dword [ebp - 0x228], 8
jb 0x47a109
push dword [ebp - 0x23c]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x228], 7
push edi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.00407e60
cmp dword [ebp - 0x274], 8
jb 0x47a149
push dword [ebp - 0x288]
call fcn.004085be
add esp, 4
cmp word [esi], 0
jne 0x47a153
xor ecx, ecx
jmp 0x47a16f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x47a160
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a160
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x244]
lea ecx, [ebp - 0x254]
push 0
call fcn.004089f0
test eax, eax
jne 0x47a18f
mov bl, 1
jmp 0x47a3eb
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x3a
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040cdd0
mov edi, eax
test edi, edi
je 0x47a3e9
cmp edi, 0xffffffff
je 0x47a3e9
cmp edi, 1
jbe 0x47a1e7
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
cmp word [eax + edi*2 - 4], 0x5c
jne 0x47a3e9
xor eax, eax
cmp dword [ebp - 0x228], 8
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push 4
lea eax, [eax + edi*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.004241e2
add esp, 0x10
test eax, eax
jne 0x47a3e9
push 0x104
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x47a3e9
cmp eax, 0x104
je 0x47a3e9
lea esi, [ebp - 0x220]
cmp eax, 4
jb 0x47a27b
push 4
mov eax, esi
push 0x533c18
push eax
call fcn.004f9cd3
add esp, 0xc
lea ecx, [ebp - 0x218]
test eax, eax
cmovne ecx, esi
mov esi, ecx
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x224], esi
test ebx, ebx
je 0x47a2ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x270], eax
cmp ebx, 0xffffffff
je 0x47a2c3
mov esi, ebx
mov dword [ebp - 0x224], esi
call fcn.00410f80
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x47a2e4
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
xor bl, bl
call fcn.00418d10
jmp 0x47a3eb
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.00430460
add esp, 8
test al, al
je 0x47a3cb
mov esi, dword [ebp - 0x25c]
mov ecx, esi
mov eax, dword [ebp - 0x22c]
sub ecx, edi
dec eax
add eax, ecx
cmp eax, dword [ebp - 0x244]
jne 0x47a3cb
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x254]
cmovae eax, dword [ebp - 0x26c]
push eax
push esi
push 0
call fcn.004247d0
test eax, eax
jne 0x47a3cb
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407cc0
mov ecx, eax
cmp dword [ebp - 0x228], 8
lea edx, [ebp - 0x23c]
mov byte [ebp - 4], 5
cmovae edx, dword [ebp - 0x23c]
cmp dword [ecx + 0x14], 8
jb 0x47a39a
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x244]
sub eax, esi
push eax
lea eax, [edx + 2]
lea eax, [eax + edi*2]
push eax
push ecx
call fcn.004208a2
add esp, 0xc
lea ecx, [ebp - 0x288]
test eax, eax
setne bl
call fcn.004087d0
test bl, bl
jne 0x47a3cb
mov bl, 1
jmp 0x47a3cd
xor bl, bl
lea ecx, [ebp - 0x26c]
call fcn.004087d0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00418d10
jmp 0x47a3eb
xor bl, bl
cmp dword [ebp - 0x240], 8
jb 0x47a402
push dword [ebp - 0x254]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [ebp - 0x240], 7
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
jb 0x47a436
push dword [ebp - 0x23c]
call fcn.004085be
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret