Function at 0x418510
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov byte [ebp - 0x11], bl
cmp edi, ebx
jne 0x418551
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00405ec0
mov ecx, edi
call fcn.00405ec0
lea ecx, [edi + 4]
mov dword [ebp - 0x24], ecx
call fcn.00405ec0
lea ecx, [edi + 8]
mov dword [ebp - 0x2c], ecx
call fcn.00405ec0
lea ecx, [edi + 0xc]
mov dword [ebp - 0x30], ecx
call fcn.00405ec0
lea ecx, [edi + 0x10]
mov dword [ebp - 0x34], ecx
call fcn.00405ec0
mov dword [edi + 0x14], ebx
cmp esi, ebx
jne 0x418594
xor eax, eax
jmp 0x4185af
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4185a0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.004069f0
mov eax, dword [edi]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, reloc.NETAPI32.dll_NetApiBufferFree
je 0x41853e
mov dword [ebp - 0x58], ebx
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x18
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push 0x70000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x418781
mov edx, dword [ebp - 0x50]
mov dword [edi + 0x14], edx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push 0xa000
call fcn.004928c4
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
push 0xa000
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x9fff
mov edx, dword [ebp - 0x18]
push edx
push 0xc
lea eax, [ebp - 0x40]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418722
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x9fff], bl
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x418725
mov ecx, dword [eax + 0x10]
cmp ecx, ebx
je 0x4186b6
cmp ecx, 0xa000
jae 0x4186b6
lea ebx, [ecx + eax]
mov edi, dword [ebp - 0x2c]
call fcn.00414800
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x18]
cmp ecx, ebx
je 0x4186d8
cmp ecx, 0xa000
jae 0x4186d8
lea ebx, [ecx + eax]
mov edi, dword [ebp - 0x24]
call fcn.00414800
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
cmp ecx, ebx
je 0x4186fa
cmp ecx, 0xa000
jae 0x4186fa
lea ebx, [ecx + eax]
mov edi, dword [ebp - 0x30]
call fcn.00414800
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
cmp ecx, ebx
je 0x41871c
cmp ecx, 0xa000
jae 0x41871c
lea ebx, [ecx + eax]
mov edi, dword [ebp - 0x34]
call fcn.00414800
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov byte [ebp - 0x11], 1
jmp 0x418725
mov eax, dword [ebp - 0x18]
push 0xa000
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x9fff
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
push ebx
push 0x2d0c10
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418781
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x9fff], bl
lea ebx, [ebp - 8]
mov edi, dword [ebp - 0x24]
call fcn.00414800
mov byte [ebp - 0x11], 1
jmp 0x418781
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret