Function at 0x418b90
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0x230], eax
push esi
push edi
test eax, eax
je 0x418bb8
mov dword [eax], ebx
mov edx, 0x80000000
mov dword [ebp - 0x218], ebx
lea ecx, [ebp - 0x218]
call fcn.00411bc5
mov edi, dword [ebp - 0x218]
mov esi, eax
test esi, esi
jne 0x418c08
push ebx
lea eax, [ebp - 0x220]
push eax
push 0x90
lea eax, [ebp - 0x2d4]
push eax
push ebx
push ebx
push 0x70048
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x418c43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x218], eax
test edi, edi
je 0x418c2a
cmp edi, 0xffffffff
je 0x418c2a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x418c53
push esi
push 0x4094f8
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x418e74
mov eax, dword [ebp - 0x2c4]
xor esi, esi
mov ebx, dword [ebp - 0x2c0]
jmp 0x418c14
mov eax, dword [ebp - 0x218]
test ebx, ebx
jne 0x418e4b
cmp eax, 0x40000000
ja 0x418e4b
call fcn.004120a6
mov edi, eax
mov dword [ebp - 0x218], edi
test edi, edi
jne 0x418c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4095f8
jmp 0x418c34
xor cl, cl
call fcn.00411f64
mov ebx, eax
test ebx, ebx
jne 0x418ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x418e25
push ebx
push 0x409650
push 2
call fcn.0041944e
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x418cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x409670
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x418e25
push 0x4096d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x418d17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4096e8
jmp 0x418ce3
push 0x40973c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x418d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x409748
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x418e19
xor eax, eax
lea edi, [ebp - 0x240]
stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
mov word [ebp - 0x240], 0x201
mov byte [ebp - 0x236], 0
mov dword [ebp - 0x234], 0x4097b0
mov dword [ebp - 0x23c], 0x80280100
call fcn.0041ed9d
test eax, eax
js 0x418da5
mov ecx, dword [ebp - 0x228]
call fcn.0041f00b
test eax, eax
jns 0x418db5
push eax
push 0x4097c0
jmp 0x418dab
push eax
push 0x409830
push 4
call fcn.0041944e
add esp, 0xc
mov edi, dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
and dword [0x42c47c], 0
mov ecx, edi
and dword [0x42c478], 0
push 0x418b40
push eax
push 1
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [0x42d390]
call edi
cmp dword [0x42c47c], 0
jne 0x418e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x418e03
mov esi, 0x65b
mov eax, dword [ebp - 0x230]
mov edi, dword [ebp - 0x218]
test eax, eax
je 0x418e19
mov dword [eax], 1
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x418e74
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x418e74
push 0
push 0x400
push 0
push 0x100000
push ebx
push eax
call fcn.0042aeb0
push edx
push eax
push 0x409560
push 4
call fcn.0041944e
add esp, 0x18
push 0x32
pop esi
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret 4