Function at 0x40e3b4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
movzx eax, byte [ebp + 0x3c]
test eax, eax
je 0x40e8b4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x120], eax
lea eax, [ebp + 0x30]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd0], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0xe4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x108]
movzx eax, byte [eax]
test eax, eax
je 0x40e822
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0xd8]
movzx eax, byte [eax]
test eax, eax
je 0x40e80e
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x40e5bb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jg 0x40e80c
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x24], 0x68044455
mov dword [ebp - 0x20], 0x4fd9e2a8
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4ca67b11
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x10], 0
jmp 0x40e60b
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x40e621
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x12c], 0xa32f3f60
jmp 0x40e604
push 0x2654
push 0x78a0
push 0x14f5
push 0x168d
push 0
push 0x7bce
push 1
push 1
push dword [ebp - 0x40]
lea eax, [ebp - 0xc]
push eax
push 0x4d68
call fcn.00411f40
add esp, 0x2c
cmp dword [ebp - 0x18], 0
jne 0x40e6e3
mov eax, dword [ebp - 0x14]
sub eax, 0x70d5dd21
cmp eax, 1
je 0x40e674
mov dword [ebp - 0x48], 1
jmp 0x40e678
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jg 0x40e68c
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 0xc]
jg 0x40e6a9
mov dword [ebp - 0x30], 1
jmp 0x40e6ad
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.0042de28
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
neg esi
push 2
mov ecx, dword [ebp - 8]
call fcn.0042de28
imul esi, dword [eax]
test esi, esi
jne 0x40e6e3
and dword [ebp - 0x38], 0
jmp 0x40e6ea
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0x38], 0x8ca18188
je 0x40e6f7
cmp dword [ebp - 0x20], 0
mov eax, 0xffff
cmp eax, 0xf9bd
jbe 0x40e70c
mov dword [ebp - 0x1c], 1
jmp 0x40e710
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp dword [ebp - 0x1c], 0
je 0x40e72e
xor eax, eax
je 0x40e72e
mov dword [ebp - 0x28], 1
jmp 0x40e732
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x28], eax
jge 0x40e743
mov dword [ebp - 0x34], 1
jmp 0x40e747
and dword [ebp - 0x34], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x12c]
mov dword [ebp - 0x2c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp + eax - 0x12c], ecx
mov eax, dword [ebp - 0x2c]
sub eax, 0xbc01
cmp eax, dword [ebp - 0x34]
jg 0x40e77d
mov dword [ebp - 0x3c], 1
jmp 0x40e781
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0xfffa
jne 0x40e796
mov dword [ebp - 0x9c], 1
jmp 0x40e79d
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.0042de28
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xac]
sub eax, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], eax
jle 0x40e7d5
mov dword [ebp - 0x44], 1
jmp 0x40e7d9
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
je 0x40e7ef
mov eax, dword [ebp - 0xb4]
cmp dword [eax], 0
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 8]
call fcn.0042de28
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x40e5b0
jmp 0x40e81d
push 0x1695
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jmp 0x40e8b2
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x104], eax
push 1
push dword [ebp - 0xec]
push 0xfd
push 1
mov eax, dword [ebp - 0xf4]
push dword [eax]
push 0x60d3
push 1
mov eax, dword [ebp - 0xfc]
push dword [eax]
push 0x7b8e
push 0x5428
push 0x6caa
push 0
push 0
push dword [ebp - 0x104]
push 0x3343
mov eax, dword [ebp - 0x10c]
push dword [eax]
call fcn.004092d9
add esp, 0x40
jmp 0x40e8e6
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x114]
push 0
push 0x3c85
push 0x4f1b
push dword [ebp - 0x11c]
call fcn.0041e8b8
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret