Function at 0x45c0a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x5256a8]
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 0x45c0e2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.00406030
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.004227b0
add esp, 8
test al, al
jne 0x45c178
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c147
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406cf9
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 0x45c529
mov edx, dword [ebp - 0x24c]
push edx
jmp 0x45c521
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x45c18d
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
mov ebx, 7
jne 0x45c1f4
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.00406690
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405fb0
cmp dword [ebp - 0x270], 8
jb 0x45c1f4
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.00406cf9
add esp, 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45c200
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.004071e0
test eax, eax
jne 0x45c283
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c244
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406cf9
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 0x45c270
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406cf9
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
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.0040a0b0
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, edi
je 0x45c4e1
cmp esi, 0xffffffff
je 0x45c4e1
cmp esi, 1
jbe 0x45c2d9
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00432b40
cmp word [eax], 0x5c
jne 0x45c3d7
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 0x45c2fd
lea eax, [ebp - 0x24c]
push 4
lea eax, [eax + esi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.0042da68
add esp, 0x10
test eax, eax
jne 0x45c3d7
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 0x45c3d7
cmp eax, 0x104
je 0x45c3d7
lea ebx, [ebp - 0x214]
cmp eax, 4
jb 0x45c36b
push 4
mov ecx, ebx
push 0x4edf50
push ecx
call fcn.004b90d3
add esp, 0xc
test eax, eax
jne 0x45c36b
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.00416180
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x45c3cc
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.004227b0
add esp, 8
test al, al
jne 0x45c400
lea ecx, [ebp - 0x268]
call fcn.00409fe0
lea ecx, [ebp - 0x288]
call fcn.004168b0
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
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 0x45c3c1
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x45c431
lea eax, [ebp - 0x268]
push eax
push ebx
push edi
lea ecx, [ebp - 0x230]
call fcn.00418fa0
test eax, eax
jne 0x45c3c1
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406650
cmp dword [eax + 0x14], 8
jb 0x45c46c
mov edi, dword [eax]
jmp 0x45c46e
mov edi, eax
mov eax, dword [ebp - 0x28c]
sub esi, ebx
push esi
inc eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.00432b40
push eax
push edi
call fcn.00418ef4
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call fcn.00409fe0
lea ecx, [ebp - 0x268]
call fcn.00409fe0
lea ecx, [ebp - 0x288]
call fcn.004168b0
lea ecx, [ebp - 0x230]
call fcn.00409fe0
lea ecx, [ebp - 0x24c]
call fcn.00409fe0
test bl, bl
jne 0x45c529
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x45c4fd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406cf9
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 0x45c529
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406cf9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret