Function at 0x4640a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x553948]
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 0x4640e2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x24c]
call fcn.004063e0
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.0042d6d0
add esp, 8
test al, al
jne 0x464178
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x464147
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406fa9
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 0x464529
mov edx, dword [ebp - 0x24c]
push edx
jmp 0x464521
cmp dword [ebp - 0x238], 8
mov ecx, dword [ebp - 0x24c]
jae 0x46418d
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x23c]
cmp word [ecx + eax*2 - 2], 0x5c
mov ebx, 7
jne 0x4641f4
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.00406a40
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00406360
cmp dword [ebp - 0x270], 8
jb 0x4641f4
mov ecx, dword [ebp - 0x284]
push ecx
call fcn.00406fa9
add esp, 4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x464200
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.00407490
test eax, eax
jne 0x464283
mov esi, 8
cmp dword [ebp - 0x21c], esi
jb 0x464244
mov eax, dword [ebp - 0x230]
push eax
call fcn.00406fa9
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 0x464270
mov edx, dword [ebp - 0x24c]
push edx
call fcn.00406fa9
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.0040a590
mov esi, eax
mov dword [ebp - 0x28c], esi
cmp esi, edi
je 0x4644e1
cmp esi, 0xffffffff
je 0x4644e1
cmp esi, 1
jbe 0x4642d9
lea ecx, [esi - 2]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.004188e0
cmp word [eax], 0x5c
jne 0x4643d7
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 0x4642fd
lea eax, [ebp - 0x24c]
push 4
lea eax, [eax + esi*2 - 2]
push eax
lea ecx, [ebp - 0xc]
push 8
push ecx
call fcn.0041a605
add esp, 0x10
test eax, eax
jne 0x4643d7
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 0x4643d7
cmp eax, 0x104
je 0x4643d7
lea ebx, [ebp - 0x214]
cmp eax, 4
jb 0x46436b
push 4
mov ecx, ebx
push 0x516d60
push ecx
call fcn.004e6260
add esp, 0xc
test eax, eax
jne 0x46436b
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.00419390
mov eax, dword [ebp - 0x288]
cmp eax, edi
je 0x4643cc
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.0042d6d0
add esp, 8
test al, al
jne 0x464400
lea ecx, [ebp - 0x268]
call fcn.0040a440
lea ecx, [ebp - 0x288]
call fcn.004172a0
lea ecx, [ebp - 0x230]
call fcn.0040a440
lea ecx, [ebp - 0x24c]
call fcn.0040a440
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 0x4643c1
cmp dword [ebp - 0x254], 8
mov eax, dword [ebp - 0x268]
jae 0x464431
lea eax, [ebp - 0x268]
push eax
push ebx
push edi
lea ecx, [ebp - 0x230]
call fcn.0041aae0
test eax, eax
jne 0x4643c1
mov esi, dword [ebp - 0x220]
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x284]
push edx
lea ecx, [ebp - 0x230]
call fcn.00406a00
cmp dword [eax + 0x14], 8
jb 0x46446c
mov edi, dword [eax]
jmp 0x46446e
mov edi, eax
mov eax, dword [ebp - 0x28c]
sub esi, ebx
push esi
inc eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.004188e0
push eax
push edi
call fcn.00417b2b
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call fcn.0040a440
lea ecx, [ebp - 0x268]
call fcn.0040a440
lea ecx, [ebp - 0x288]
call fcn.004172a0
lea ecx, [ebp - 0x230]
call fcn.0040a440
lea ecx, [ebp - 0x24c]
call fcn.0040a440
test bl, bl
jne 0x464529
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 0x4644fd
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00406fa9
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 0x464529
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00406fa9
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