Function at 0x46c470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508897
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x556620]
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 - 0x224], 0
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [esi], ax
jne 0x46c4d4
xor ecx, ecx
jmp 0x46c4ef
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c4e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.004073d0
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.0042c8d0
add esp, 8
test al, al
je 0x46c85c
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 0x46c5d9
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407940
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x46c5c2
cmp dword [ebp - 0x228], 8
jb 0x46c599
push dword [ebp - 0x23c]
call fcn.0040823e
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.00407ae0
cmp dword [ebp - 0x270], 8
jb 0x46c5d9
push dword [ebp - 0x284]
call fcn.0040823e
add esp, 4
cmp word [esi], 0
jne 0x46c5e3
xor ecx, ecx
jmp 0x46c5ff
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x46c5f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c5f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
push dword [ebp - 0x244]
lea ecx, [ebp - 0x254]
push 0
call fcn.00408670
test eax, eax
jne 0x46c61f
mov bl, 1
jmp 0x46c85e
push 1
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x3a
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040b680
mov esi, eax
test esi, esi
je 0x46c85c
cmp esi, 0xffffffff
je 0x46c85c
cmp esi, 1
jbe 0x46c677
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
cmp word [eax + esi*2 - 4], 0x5c
jne 0x46c85c
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 + esi*2]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x18]
push 8
push eax
call fcn.0041e67e
add esp, 0x10
test eax, eax
jne 0x46c85c
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 0x46c85c
cmp eax, 0x104
je 0x46c85c
lea edi, [ebp - 0x220]
cmp eax, 4
jb 0x46c70b
push 4
mov eax, edi
push 0x517008
push eax
call fcn.004e1137
add esp, 0xc
lea ecx, [ebp - 0x218]
test eax, eax
cmovne ecx, edi
mov edi, ecx
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push edi
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x224]
call fcn.0041ccd0
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x46c757
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
xor bl, bl
call fcn.00418590
jmp 0x46c85e
xor ecx, ecx
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], cx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
push ecx
push eax
call fcn.0042c8d0
add esp, 8
test al, al
je 0x46c83e
mov edi, dword [ebp - 0x25c]
mov ecx, edi
mov eax, dword [ebp - 0x22c]
sub ecx, esi
dec eax
add eax, ecx
cmp eax, dword [ebp - 0x244]
jne 0x46c83e
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x254]
cmovae eax, dword [ebp - 0x26c]
push eax
push edi
push 0
call fcn.0041ebb0
test eax, eax
jne 0x46c83e
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407940
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 0x46c80d
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x244]
sub eax, edi
push eax
lea eax, [edx + 2]
lea eax, [eax + esi*2]
push eax
push ecx
call fcn.0041abf5
add esp, 0xc
lea ecx, [ebp - 0x284]
test eax, eax
setne bl
call fcn.00408450
test bl, bl
jne 0x46c83e
mov bl, 1
jmp 0x46c840
xor bl, bl
lea ecx, [ebp - 0x26c]
call fcn.00408450
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.00418590
jmp 0x46c85e
xor bl, bl
cmp dword [ebp - 0x240], 8
jb 0x46c875
push dword [ebp - 0x254]
call fcn.0040823e
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 0x46c8a9
push dword [ebp - 0x23c]
call fcn.0040823e
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.00401580
mov esp, ebp
pop ebp
ret