Function at 0x418f68
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov ecx, 0x1a
lea eax, [ebp - 0x164]
mov edx, dword [0x418f3c]
call fcn.00404cc0
xor eax, eax
push ebp
push 0x41942c
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea ebx, [ebp - 0x164]
lea eax, [ebp - 0x168]
lea edx, [esi + 0x61]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x16c]
call fcn.00402ebc
mov edx, 0x41943c
lea eax, [ebp - 0x16c]
mov cl, 2
call fcn.00402e8c
lea edx, [ebp - 0x16c]
mov eax, ebx
call fcn.00404378
lea eax, [ebx + 4]
mov edx, 0x7f
call fcn.004046fc
lea eax, [ebx + 4]
call fcn.00404624
mov edx, 0x7f
call fcn.004066bc
push 0x7f
lea eax, [ebx + 4]
call fcn.00404624
push eax
mov eax, dword [ebx]
call fcn.004045cc
push eax
call sub.kernel32.dll_QueryDosDeviceA
mov eax, dword [ebx + 4]
call fcn.004045cc
mov edx, eax
lea eax, [ebp - 0x170]
call fcn.0040430c
mov eax, dword [ebp - 0x170]
call fcn.004043cc
mov edi, eax
mov dword [ebx + 8], edi
mov edx, edi
lea eax, [ebx + 4]
call fcn.004046fc
inc esi
add ebx, 0xc
cmp esi, 0x1a
jne 0x418fc0
mov byte [ebp - 0x11], 0
call fcn.00418ec4
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push 0x419440
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x419154
xor eax, eax
push ebp
push 0x41914d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x10
call fcn.00418c84
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x419136
xor eax, eax
push ebp
push 0x41912f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x419119
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x10]
add ebx, ebx
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ebx*8 + 0xa]
cmp eax, dword [ebp - 4]
jne 0x419111
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + ebx*8 + 4]
jne 0x419111
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx*8 + 8]
mov byte [ebp - 0x11], al
jmp 0x419119
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x4190e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419136
mov eax, dword [ebp - 0xc]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419154
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, 5
call fcn.00418c84
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4193e3
xor eax, eax
push ebp
push 0x4193dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x10
call fcn.00418c84
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4193c6
xor eax, eax
push ebp
push 0x4193bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x4193a9
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x10]
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx*8 + 8]
cmp al, byte [ebp - 0x11]
jne 0x41939d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 4]
push eax
push 0xffffffffffffffff
push 0x40
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x41939d
xor eax, eax
push ebp
push 0x419396
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ebx*8 + 0xa]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x41937f
xor eax, eax
push ebp
push 0x419378
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00418df8
cmp dword [ebp - 0x1c], 0
je 0x419361
lea eax, [ebp - 0x18]
call fcn.00404104
mov esi, 0x1a
lea ebx, [ebp - 0x15c]
mov edi, dword [ebx]
test edi, edi
jle 0x4192a0
lea eax, [ebp - 0x174]
push eax
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040462c
mov eax, dword [ebp - 0x174]
mov edx, dword [ebx - 4]
call fcn.00404518
jne 0x4192a0
lea eax, [ebp - 0x18]
mov edx, dword [ebx - 8]
call fcn.0040419c
mov ecx, dword [ebx]
lea eax, [ebp - 0x1c]
mov edx, 1
call fcn.0040466c
jmp 0x4192a6
add ebx, 0xc
dec esi
jne 0x419258
cmp dword [ebp - 0x18], 0
jne 0x4192bb
call fcn.00403b94
call fcn.00403b94
jmp 0x41939d
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
add eax, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8 + 4]
cmp eax, dword [ebx + 0x44]
jne 0x4192dc
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0x3c]
call fcn.0040433c
jmp 0x4192e7
mov eax, dword [ebx]
add eax, ebx
mov ebx, eax
cmp dword [ebx], 0
jne 0x4192be
lea eax, [ebp - 0x28]
mov edx, 0x104
call fcn.004046fc
push 0x104
lea eax, [ebp - 0x28]
call fcn.00404624
push eax
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404418
mov eax, dword [ebp - 0x178]
call fcn.004045cc
push eax
call sub.kernel32.dll_GetLongPathNameA
call fcn.00418b44
mov eax, dword [0x423940]
call fcn.00405208
mov edx, dword [0x423940]
lea eax, [edx + eax*8 - 8]
mov edx, dword [ebp - 0x20]
call fcn.00404158
mov eax, dword [0x423940]
call fcn.00405208
mov edx, dword [0x423940]
lea eax, [edx + eax*8 - 4]
mov edx, dword [ebp - 0x28]
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41937f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41939d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x4191b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4193c6
mov eax, dword [ebp - 0xc]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4193e3
mov eax, dword [ebp - 0x24]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419433
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404128
lea eax, [ebp - 0x164]
mov ecx, 0x1a
mov edx, dword [0x418f3c]
call fcn.00404da0
lea eax, [ebp - 0x28]
call fcn.00404104
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404128
ret