Function at 0x409f30
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x529e11
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x840], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x552a7c]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x86c]
xor edi, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
xor ebp, ebp
mov dword [esp + 0x1c], ebp
push edi
push 0x5425e8
mov eax, 0x200
lea ebx, [esp + 0x65c]
mov dword [esp + 0x86c], ebp
call fcn.004099e0
add esp, 8
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x409fd4
call fcn.00409870
cmp eax, esi
je 0x409fda
mov dword [esp + 0x864], 0xffffffff
jmp 0x40a2d7
mov ebp, eax
mov dword [esp + 0x1c], ebp
push 0x3e8
lea edx, [esp + 0x270]
push esi
push edx
call fcn.004f7580
add esp, 0xc
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push 0x3e8
lea ecx, [esp + 0x278]
push ecx
push 0xc
lea edx, [esp + 0x4c]
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a2c1
cmp ebp, esi
je 0x40a049
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp byte [esp + 0x276], 0
jne 0x40a2c1
mov eax, dword [esp + 0x288]
cmp eax, 1
je 0x40a2c1
cmp eax, 0xa
je 0x40a2c1
cmp eax, 4
je 0x40a2c1
cmp eax, 7
je 0x40a2c1
cmp eax, 0xe
je 0x40a2c1
cmp eax, 0xf
je 0x40a2c1
lea esi, [esp + 0x20]
call fcn.00403010
lea esi, [esp + 0x24]
call fcn.00403010
mov eax, esi
push eax
mov ebx, 2
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x86c], bl
call fcn.00409d00
add esp, 8
test eax, eax
je 0x40a0d4
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 0xc], 0
jne 0x40a30f
lea ecx, [esp + 0x24]
call fcn.00403030
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0
call fcn.00403030
lea eax, [esp + 0x26c]
call fcn.00409f10
test eax, eax
jne 0x40a117
lea esi, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.004098d0
jmp 0x40a2d7
push 0x104
lea edx, [esp + 0x168]
push 0
push edx
call fcn.004f7580
add esp, 0xc
cmp dword [esp + 0x284], 0
je 0x40a199
lea edi, [esp + 0x44]
mov dword [esp + 0x44], 0x11c
mov esi, 1
call fcn.00401d50
test eax, eax
je 0x40a165
mov eax, dword [esp + 0x48]
cmp eax, 6
ja 0x40a163
jne 0x40a165
cmp dword [esp + 0x4c], ebx
jb 0x40a165
xor esi, esi
mov eax, dword [esp + 0x284]
lea eax, [esp + eax + 0x26c]
mov edx, 0x104
lea ecx, [esp + 0x164]
call fcn.00404ef0
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x16c]
call fcn.00409c00
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
cmp dword [edx - 0xc], 0
jne 0x40a1c2
lea esi, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.004098d0
mov edi, dword [esp + 0x28]
jmp 0x40a2d7
push 0x104
lea eax, [esp + 0x168]
push 0
push eax
call fcn.004f7580
mov eax, dword [esp + 0x284]
add esp, 0xc
test eax, eax
je 0x40a21d
lea edi, [esp + 0x2c]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.0040a740
test eax, eax
jl 0x40a21d
mov eax, dword [esp + 0x2c]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0040a6f0
cmp byte [esp + 0x164], 0
je 0x40a23a
push 0x542298
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x40a27e
lea edi, [esp + 0x30]
mov ecx, 0x104
lea edx, [esp + 0x164]
lea esi, [esp + eax + 0x26c]
call fcn.0040a740
test eax, eax
jl 0x40a27e
mov eax, dword [esp + 0x30]
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax + 0x164]
mov eax, esi
call fcn.0040a6f0
cmp byte [esp + 0x164], 0
je 0x40a2ab
push 0x542298
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x164]
call fcn.0040a350
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x40a33e
mov edi, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x864], 0xffffffff
cmp ebp, esi
je 0x40a2d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0x10
mov dword [esp + 0x28], edi
jl 0x409f7c
xor eax, eax
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.004f7567
add esp, 0x854
ret
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x20]
call fcn.00407e20
mov eax, dword [esp + 0x24]
push eax
mov edx, edi
push edx
mov edx, dword [eax - 0xc]
call fcn.00403130
lea ecx, [esp + 0x24]
call fcn.00403030
lea ecx, [esp + 0x20]
call fcn.00403030
lea esi, [esp + 0x1c]
call fcn.004098d0
mov eax, 1
jmp 0x40a2e7