Function at 0x439850
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x46b251
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 0x4786e4
mov eax, 0x200
lea ebx, [esp + 0x654]
mov dword [esp + 0x860], ebp
call fcn.00439320
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 0x4398fa
call fcn.00409b78
cmp eax, ebx
je 0x439900
mov dword [esp + 0x858], 0xffffffff
jmp 0x439bf0
mov ebp, eax
mov dword [esp + 0x18], ebp
push 0x3e8
lea edx, [esp + 0x268]
push ebx
push edx
call fcn.0043e330
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 0x439bda
cmp ebp, ebx
je 0x43996f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp byte [esp + 0x26e], bl
jne 0x439bda
mov eax, dword [esp + 0x280]
cmp eax, 1
je 0x439bda
cmp eax, 0xa
je 0x439bda
cmp eax, 4
je 0x439bda
cmp eax, 7
je 0x439bda
cmp eax, 0xe
je 0x439bda
cmp eax, 0xf
je 0x439bda
lea esi, [esp + 0x1c]
call fcn.00434060
lea esi, [esp + 0x28]
call fcn.00434060
mov cl, byte [esp + 0x20]
mov eax, esi
push eax
lea edx, [esp + 0x20]
mov byte [esp + 0x85c], 2
call fcn.00439620
add esp, 4
test eax, eax
je 0x4399f7
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jne 0x439c2c
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 0x439a1f
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 0x439a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x264]
call fcn.00439830
test eax, eax
jne 0x439a6f
lea esi, [esp + 0x18]
mov dword [esp + 0x858], 0xffffffff
call fcn.00439210
jmp 0x439bf0
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e330
add esp, 0xc
cmp dword [esp + 0x27c], ebx
je 0x439b1e
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
mov edi, 1
call fcn.0040360e
test eax, eax
je 0x439ac0
mov eax, dword [esp + 0x40]
cmp eax, 6
ja 0x439abe
jne 0x439ac0
cmp dword [esp + 0x44], 2
jb 0x439ac0
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 0x439afb
mov cl, byte [edx + eax]
test cl, cl
je 0x439afb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x439ae0
jmp 0x439aff
test esi, esi
jne 0x439b00
dec eax
mov edx, dword [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x164]
mov byte [eax], 0
call fcn.00439510
mov edi, dword [esp + 0x2c]
add esp, 8
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x439a56
push 0x104
lea ecx, [esp + 0x160]
push ebx
push ecx
call fcn.0043e330
mov eax, dword [esp + 0x27c]
add esp, 0xc
cmp eax, ebx
je 0x439b63
lea edx, [esp + eax + 0x264]
push edx
push 0x104
lea esi, [esp + 0x164]
call fcn.00421211
cmp byte [esp + 0x15c], bl
je 0x439b7f
push 0x479bd0
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [esp + 0x274]
cmp eax, ebx
je 0x439ba3
lea ecx, [esp + eax + 0x264]
push ecx
push 0x104
lea esi, [esp + 0x164]
call fcn.00421211
cmp byte [esp + 0x15c], bl
je 0x439bcf
push 0x479bd0
lea edx, [esp + 0x160]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea edx, [esp + 0x15c]
call fcn.00439cb0
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jne 0x439c96
mov dword [esp + 0x858], 0xffffffff
cmp ebp, ebx
je 0x439bf0
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 0x439899
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.0043b2b9
add esp, 0x848
ret
lea eax, [esp + 0x1c]
call fcn.00438240
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax - 0xc]
push eax
push ecx
call fcn.00434170
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 0x439c6f
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 0x439c96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x18]
call fcn.00439210
mov eax, 1
jmp 0x439c04