Function at 0x439270
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x30fc
call fcn.004681d0
mov eax, dword [0x4b9b30]
xor eax, esp
mov dword [esp + 0x30f8], eax
mov eax, dword [esp + 0x3100]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
lea ecx, [esp + 0x414]
push 0x49fc38
xor ebp, ebp
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.0046a42b
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4394d0
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x2710
mov dword [esp + 0x28], eax
lea eax, [esp + 0x9fc]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00466350
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0xa04]
push edx
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x4393f7
push 0x3e7
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov byte [esp + 0x34], bl
call fcn.00466350
mov edx, dword [esp + 0xa1c]
add esp, 0xc
lea eax, [esp + edx + 0x9f8]
push eax
mov ecx, esi
call fcn.004390c0
lea edx, [esp + 0x28]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x439370
mov eax, dword [esp + 0xa08]
lea eax, [esp + eax + 0x9f8]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x439388
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x439401
movsx ecx, byte [esp + 0x28]
push ecx
call fcn.00467f3d
add esp, 4
test eax, eax
jne 0x4393bb
movsx edx, byte [esp + 0x3b]
push edx
call fcn.00467f3d
add esp, 4
test eax, eax
je 0x439401
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x3114]
cmp ecx, eax
jae 0x4393d5
mov eax, ecx
jmp 0x4393e0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x10], 1
jmp 0x439401
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
push 0x2710
lea eax, [esp + 0x9fc]
push ebx
push eax
call fcn.00466350
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0xa04]
push edx
push ebx
push ebx
push 0x2d0c10
push edi
call ebp
test eax, eax
je 0x4394bd
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0xa08]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x439440
cmp esi, ebx
je 0x4394c3
movsx eax, byte [esp + 0x28]
push eax
call fcn.00467f3d
add esp, 4
test eax, eax
jne 0x439478
movsx ecx, byte [esp + 0x3b]
push ecx
call fcn.00467f3d
add esp, 4
test eax, eax
je 0x4394c3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x28]
push edx
call ebx
mov ecx, dword [esp + 0x3114]
cmp ecx, eax
jae 0x439494
mov eax, ecx
jmp 0x43949b
lea eax, [esp + 0x28]
push eax
call ebx
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x4394d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x4394d2
mov eax, ebp
mov ecx, dword [esp + 0x3108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466fd0
add esp, 0x30fc
ret 8