Function at 0x4396a0
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x46b0d1
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 0x478654
mov eax, 0x200
lea ebx, [esp + 0x654]
mov dword [esp + 0x860], ebp
call fcn.00439170
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 0x43974a
call fcn.004098b4
cmp eax, ebx
je 0x439750
mov dword [esp + 0x858], 0xffffffff
jmp 0x439a40
mov ebp, eax
mov dword [esp + 0x18], ebp
push 0x3e8
lea edx, [esp + 0x268]
push ebx
push edx
call fcn.0043e180
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 0x439a2a
cmp ebp, ebx
je 0x4397bf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp byte [esp + 0x26e], bl
jne 0x439a2a
mov eax, dword [esp + 0x280]
cmp eax, 1
je 0x439a2a
cmp eax, 0xa
je 0x439a2a
cmp eax, 4
je 0x439a2a
cmp eax, 7
je 0x439a2a
cmp eax, 0xe
je 0x439a2a
cmp eax, 0xf
je 0x439a2a
lea esi, [esp + 0x1c]
call fcn.00433eb0
lea esi, [esp + 0x28]
call fcn.00433eb0
mov cl, byte [esp + 0x20]
mov eax, esi
push eax
lea edx, [esp + 0x20]
mov byte [esp + 0x85c], 2
call fcn.00439470
add esp, 4
test eax, eax
je 0x439847
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jne 0x439a7c
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 0x43986f
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 0x439896
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x264]
call fcn.00439680
test eax, eax
jne 0x4398bf
lea esi, [esp + 0x18]
mov dword [esp + 0x858], 0xffffffff
call fcn.00439060
jmp 0x439a40
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e180
add esp, 0xc
cmp dword [esp + 0x27c], ebx
je 0x43996e
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
mov edi, 1
call fcn.0040360e
test eax, eax
je 0x439910
mov eax, dword [esp + 0x40]
cmp eax, 6
ja 0x43990e
jne 0x439910
cmp dword [esp + 0x44], 2
jb 0x439910
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 0x43994b
mov cl, byte [edx + eax]
test cl, cl
je 0x43994b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x439930
jmp 0x43994f
test esi, esi
jne 0x439950
dec eax
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x164]
mov byte [eax], 0
call fcn.00439360
mov edi, dword [esp + 0x2c]
add esp, 8
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4398a6
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e180
mov eax, dword [esp + 0x27c]
add esp, 0xc
cmp eax, ebx
je 0x4399b3
lea edx, [esp + eax + 0x264]
push edx
push 0x104
lea esi, [esp + 0x164]
call fcn.00420ffd
cmp byte [esp + 0x15c], bl
je 0x4399cf
push 0x479b40
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x274]
cmp eax, ebx
je 0x4399f3
lea ecx, [esp + eax + 0x264]
push ecx
push 0x104
lea esi, [esp + 0x164]
call fcn.00420ffd
cmp byte [esp + 0x15c], bl
je 0x439a1f
push 0x479b40
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea edx, [esp + 0x15c]
call fcn.00439b00
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x439ae6
mov dword [esp + 0x858], 0xffffffff
cmp ebp, ebx
je 0x439a40
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 0x4396e9
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.0043b103
add esp, 0x848
ret
lea eax, [esp + 0x1c]
call fcn.00438090
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
push eax
push ecx
call fcn.00433fc0
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 0x439abf
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 0x439ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00439060
mov eax, 1
jmp 0x439a54