Function at 0x42e790
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
xor edx, edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42ed9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x42edb4
call fcn.0041b79c
lea eax, [ebp - 0x68]
call fcn.0042e614
cmp dword [ebp - 0x68], 0
jne 0x42e7f6
mov ecx, 0x42eddc
mov dl, 1
mov eax, dword [0x406dc4]
call fcn.0040c230
call fcn.004041ac
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x416cac]
call fcn.00403aa4
mov dword [ebp - 0x38], eax
mov dl, 1
mov eax, dword [0x416cac]
call fcn.00403aa4
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x42ed50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x42e881
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.00407c90
cmp dword [ebp - 0x6c], 0
jne 0x42e878
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42e848
xor eax, eax
push ebp
push 0x42ed02
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0042e554
call fcn.0042fb50
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x18]
add edx, 0x61
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x74]
lea eax, [ebp - 0x78]
call fcn.00403290
mov edx, 0x42edf8
lea eax, [ebp - 0x78]
mov cl, 2
call fcn.00403260
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x3c]
call fcn.00404aa0
lea eax, [ebp - 0x40]
mov edx, 0x7f
call fcn.00404e08
lea eax, [ebp - 0x40]
call fcn.00404d30
mov edx, 0x7f
call fcn.00406a14
push 0x7f
lea eax, [ebp - 0x40]
call fcn.00404d30
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00404cd8
push eax
call sub.kernel32.dll_QueryDosDeviceA
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x40]
call fcn.00407c90
cmp dword [ebp - 0x44], 0
je 0x42e929
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
call fcn.00413e78
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1a
jne 0x42e89e
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5d], 0
je 0x42e94c
mov al, 1
call fcn.00418a0c
jmp 0x42e953
xor eax, eax
call fcn.00418a0c
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push 0x42edfc
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x42e97a
call fcn.0040da18
xor eax, eax
push ebp
push 0x42ea3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x10
call fcn.0042e580
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42e9a0
call fcn.0040da18
xor eax, eax
push ebp
push 0x42ea1d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x42ea07
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + eax*8 + 4]
cmp eax, dword [ebp - 0x2c]
jne 0x42e9ff
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + eax*8 + 0xa]
cmp eax, dword [ebp - 0xc]
jne 0x42e9ff
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 0x10]
mov al, byte [edx + eax*8 + 8]
mov byte [ebp - 0x19], al
jmp 0x42ea07
inc dword [ebp - 0x14]
dec dword [ebp - 0x58]
jne 0x42e9cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ea24
mov eax, dword [ebp - 0x10]
call fcn.00402a14
ret