Function at 0x4396f0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x46b121
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x483260]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483260]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
push eax
push 0x47865c
mov eax, 0x200
lea ebx, [esp + 0x654]
mov dword [esp + 0x860], ebp
call fcn.004391c0
add esp, 8
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x664]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43979a
call fcn.004098f4
cmp eax, ebx
je 0x4397a0
mov dword [esp + 0x858], 0xffffffff
jmp 0x439a90
mov ebp, eax
mov dword [esp + 0x18], ebp
push 0x3e8
lea edx, [esp + 0x268]
push ebx
push edx
call fcn.0043e1d0
add esp, 0xc
xor eax, eax
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push 0x3e8
lea ecx, [esp + 0x270]
push ecx
push 0xc
lea edx, [esp + 0x44]
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x439a7a
cmp ebp, ebx
je 0x43980f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp byte [esp + 0x26e], bl
jne 0x439a7a
mov eax, dword [esp + 0x280]
cmp eax, 1
je 0x439a7a
cmp eax, 0xa
je 0x439a7a
cmp eax, 4
je 0x439a7a
cmp eax, 7
je 0x439a7a
cmp eax, 0xe
je 0x439a7a
cmp eax, 0xf
je 0x439a7a
lea esi, [esp + 0x1c]
call fcn.00433ef0
lea esi, [esp + 0x28]
call fcn.00433ef0
mov cl, byte [esp + 0x20]
mov eax, esi
push eax
lea edx, [esp + 0x20]
mov byte [esp + 0x85c], 2
call fcn.004394c0
add esp, 4
test eax, eax
je 0x439897
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jne 0x439acc
mov byte [esp + 0x858], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4398bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x858], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4398e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x264]
call fcn.004396d0
test eax, eax
jne 0x43990f
lea esi, [esp + 0x18]
mov dword [esp + 0x858], 0xffffffff
call fcn.004390b0
jmp 0x439a90
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e1d0
add esp, 0xc
cmp dword [esp + 0x27c], ebx
je 0x4399be
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
mov edi, 1
call fcn.0040360e
test eax, eax
je 0x439960
mov eax, dword [esp + 0x40]
cmp eax, 6
ja 0x43995e
jne 0x439960
cmp dword [esp + 0x44], 2
jb 0x439960
xor edi, edi
mov edx, dword [esp + 0x27c]
lea eax, [esp + 0x15c]
lea edx, [esp + edx + 0x264]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
mov edi, edi
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x43999b
mov cl, byte [edx + eax]
test cl, cl
je 0x43999b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x439980
jmp 0x43999f
test esi, esi
jne 0x4399a0
dec eax
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x164]
mov byte [eax], 0
call fcn.004393b0
mov edi, dword [esp + 0x2c]
add esp, 8
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4398f6
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e1d0
mov eax, dword [esp + 0x27c]
add esp, 0xc
cmp eax, ebx
je 0x439a03
lea edx, [esp + eax + 0x264]
push edx
push 0x104
lea esi, [esp + 0x164]
call fcn.00421038
cmp byte [esp + 0x15c], bl
je 0x439a1f
push 0x479b48
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x274]
cmp eax, ebx
je 0x439a43
lea ecx, [esp + eax + 0x264]
push ecx
push 0x104
lea esi, [esp + 0x164]
call fcn.00421038
cmp byte [esp + 0x15c], bl
je 0x439a6f
push 0x479b48
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea edx, [esp + 0x15c]
call fcn.00439b50
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x439b36
mov dword [esp + 0x858], 0xffffffff
cmp ebp, ebx
je 0x439a90
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x10
mov dword [esp + 0x20], eax
jl 0x439739
xor eax, eax
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0043b155
add esp, 0x848
ret
lea eax, [esp + 0x1c]
call fcn.004380e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
push eax
push ecx
call fcn.00434000
mov byte [esp + 0x858], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439b0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x858], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439b36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.004390b0
mov eax, 1
jmp 0x439aa4