Function at 0x413600
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
nop
test bl, bl
jne 0x41397f
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x4668d4
push 0xffffffffffffffff
push 0xff
push eax
call fcn.0040d7a0
add esp, 0x14
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413975
push 0x800
lea eax, [ebp - 0xd0c]
mov dword [ebp - 0xd34], 0
push 0
push eax
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd2c], 0
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x413968
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.0043fa60
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.00413180
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.00413180
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.00413180
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.004467b4
add esp, 0x1c
test eax, eax
jne 0x4137ba
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.004467b4
add esp, 4
test eax, eax
je 0x41396e
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd10], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xd24], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4137e0
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0040b870
mov ecx, dword [ebp - 0xd38]
lea eax, [ebp - 0xd24]
push eax
call fcn.00413ad0
mov edx, dword [ebp - 0xd10]
cmp edx, 0x10
jb 0x413848
mov ecx, dword [ebp - 0xd24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41383e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413992
push edx
push ecx
call fcn.0043dbf3
add esp, 8
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd10], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0xd24], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413870
sub ecx, edx
lea eax, [ebp - 0x20c]
push ecx
push eax
lea ecx, [ebp - 0xd24]
call fcn.0040b870
mov ecx, dword [ebp - 0xd3c]
lea eax, [ebp - 0xd24]
push eax
call fcn.00413ad0
mov edx, dword [ebp - 0xd10]
cmp edx, 0x10
jb 0x4138d8
mov ecx, dword [ebp - 0xd24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4138ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413992
push edx
push ecx
call fcn.0043dbf3
add esp, 8
lea eax, [ebp - 0x30c]
mov dword [ebp - 0xd14], 0
mov dword [ebp - 0xd10], 0xf
lea edx, [eax + 1]
mov byte [ebp - 0xd24], 0
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413900
sub eax, edx
lea ecx, [ebp - 0xd24]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.0040b870
mov ecx, dword [ebp - 0xd40]
lea eax, [ebp - 0xd24]
push eax
call fcn.00413ad0
mov edx, dword [ebp - 0xd10]
cmp edx, 0x10
jb 0x413964
mov ecx, dword [ebp - 0xd24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41395a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413992
push edx
push ecx
call fcn.0043dbf3
add esp, 8
mov bl, 1
jmp 0x41396e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x413630
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
call fcn.004420bc
int3