Function at 0x42ea04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x42eaad
lea eax, [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x42ea6f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x60]
push dword [ebp - 0x30]
call fcn.0042ec8d
add esp, 0x10
jmp 0x42eaa8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
movzx eax, byte [eax]
test eax, eax
je 0x42ea9c
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0xffffffff
jmp 0x42eaa8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jmp 0x42ec88
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0x53b26bdd
push 1
lea ecx, [ebp - 0x7c]
call fcn.00406726
mov dword [ebp - 0x54], 0xd1456b86
mov dword [ebp - 8], 0
jmp 0x42eae1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x42eafa
push dword [ebp - 8]
lea ecx, [ebp - 0x7c]
call fcn.00406814
mov dword [eax], 0xdae5a60d
jmp 0x42eada
mov dword [ebp - 4], 0xfffffffa
jmp 0x42eb0a
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffe5
jle 0x42ec66
push 2
lea ecx, [ebp - 0x2c]
call fcn.00406726
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x42eb35
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jge 0x42eb4b
push dword [ebp - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00406814
or dword [eax], 0xffffffff
jmp 0x42eb2e
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406814
mov esi, dword [eax]
sub esi, 0x3ed1
push 0
lea ecx, [ebp - 0x7c]
call fcn.00406814
mov dword [eax], esi
push 0
lea ecx, [ebp - 0x7c]
call fcn.00406814
and dword [eax], 0
xor eax, eax
je 0x42ec3a
xor eax, eax
inc eax
je 0x42eb9b
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406814
cmp dword [eax], 0
je 0x42eb9b
mov dword [ebp - 0x1c], 1
jmp 0x42eb9f
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42ebb9
mov eax, 0xabff5ecc
test eax, eax
jne 0x42ebb9
and dword [ebp - 0x44], 0
jmp 0x42ebc0
mov dword [ebp - 0x44], 1
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406814
mov ecx, dword [ebp - 4]
cmp dword [eax], ecx
jg 0x42ebda
mov dword [ebp - 0x10], 1
jmp 0x42ebde
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x84], eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406814
cmp dword [ebp - 4], 0
jae 0x42ec06
mov dword [ebp - 0x4c], 1
jmp 0x42ec0a
and dword [ebp - 0x4c], 0
push 0
lea ecx, [ebp - 0x7c]
call fcn.00406814
cmp dword [eax], 0
jne 0x42ec31
mov eax, 0xf944
test eax, eax
jne 0x42ec31
push 0
lea ecx, [ebp - 0x2c]
call fcn.00406814
cmp dword [eax], 0
je 0x42ec3a
mov dword [ebp - 0x14], 1
jmp 0x42ec3e
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x14], eax
jge 0x42ec4f
mov dword [ebp - 0x20], 1
jmp 0x42ec53
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x2c]
call fcn.004067f8
jmp 0x42eb03
lea ecx, [ebp - 0x7c]
call fcn.004067f8
push dword [ebp - 0x5c]
push 0x2d16
push 0x6043
push dword [ebp - 0x64]
push 1
call fcn.0040a129
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret