Function at 0x460e60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
xor eax, eax
mov word [ebp - 0x24c], ax
mov eax, esi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460ea2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.00406300
lea edx, [ebp - 0x230]
push edx
xor ecx, ecx
push ebx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
call fcn.0042b1f0
add esp, 8
test al, al
jne 0x460f38
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x460f07
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], esi
jb 0x4612e9
mov edx, dword [ebp - 0x24c]
push edx
jmp 0x4612e1
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x460f4d
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
mov ebx, 7
jne 0x460fb4
dec eax
push eax
xor ecx, ecx
push edi
lea edx, [ebp - 0x24c]
mov word [ebp - 0x284], cx
push edx
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], edi
call fcn.00406960
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406280
cmp dword [ebp - 0x270], 8
jb 0x460fb4
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.00406ec9
add esp, 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x460fc0
sub eax, edx
mov edx, dword [ebp - 0x220]
sar eax, 1
push eax
push esi
push edx
push edi
lea ecx, [ebp - 0x230]
call fcn.004073b0
test eax, eax
jne 0x461043
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x461004
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406ec9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], cx
cmp dword [ebp - 0x238], esi
jb 0x461030
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
push 1
push edi
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x288], 0x3a
call fcn.0040a410
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, edi
je 0x4612a1
cmp esi, 0xffffffff
je 0x4612a1
cmp esi, 1
jbe 0x461099
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00418750
cmp word [eax], 0x5c
jne 0x461197
xor eax, eax
xor edx, edx
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, dword [ebp - 0x24c]
mov word [ebp - 0xc], dx
jae 0x4610bd
lea eax, [ebp - 0x24c]
push 4
lea eax, [eax + esi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.0041a095
add esp, 0x10
test eax, eax
jne 0x461197
push 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x461197
cmp eax, 0x104
je 0x461197
lea ebx, [ebp - 0x214]
cmp eax, 4
jb 0x46112b
push 4
mov ecx, ebx
push 0x512bf0
push ecx
call fcn.004e3630
add esp, 0xc
test eax, eax
jne 0x46112b
lea ebx, [ebp - 0x20c]
push edi
push 0x2000000
push 3
push edi
push 7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x288]
call fcn.00419200
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x46118c
lea ecx, [ebp - 0x268]
push ecx
xor edx, edx
push eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], edi
mov word [ebp - 0x268], dx
call fcn.0042b1f0
add esp, 8
test al, al
jne 0x4611c0
lea ecx, [ebp - 0x268]
call fcn.0040a2c0
lea ecx, [ebp - 0x288]
call fcn.00417110
lea ecx, [ebp - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x23c]
mov edx, ebx
sub edx, esi
lea ecx, [edx + eax - 1]
cmp ecx, dword [ebp - 0x220]
jne 0x461181
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x4611f1
lea eax, [ebp - 0x268]
push eax
push ebx
push edi
lea ecx, [ebp - 0x230]
call fcn.0041a790
test eax, eax
jne 0x461181
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406920
cmp dword [eax + 0x14], 8
jb 0x46122c
mov edi, dword [eax]
jmp 0x46122e
mov edi, eax
mov eax, dword [ebp - 0x28c]
sub esi, ebx
push esi
inc eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418750
push eax
push edi
call fcn.0041799b
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call fcn.0040a2c0
lea ecx, [ebp - 0x268]
call fcn.0040a2c0
lea ecx, [ebp - 0x288]
call fcn.00417110
lea ecx, [ebp - 0x230]
call fcn.0040a2c0
lea ecx, [ebp - 0x24c]
call fcn.0040a2c0
test bl, bl
jne 0x4612e9
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x4612bd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], edi
mov word [ebp - 0x230], dx
cmp dword [ebp - 0x238], esi
jb 0x4612e9
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret