Function at 0x435870
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x30fc
call fcn.00461df0
mov eax, dword [0x4b7b70]
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 0x49be58
xor ebp, ebp
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.00463602
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 0x435ad0
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.00460000
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 0x4359f7
push 0x3e7
lea ecx, [esp + 0x2d]
push ebx
push ecx
mov byte [esp + 0x34], bl
call fcn.00460000
mov edx, dword [esp + 0xa1c]
add esp, 0xc
lea eax, [esp + edx + 0x9f8]
push eax
mov ecx, esi
call fcn.004356c0
lea edx, [esp + 0x28]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x435970
mov eax, dword [esp + 0xa08]
lea eax, [esp + eax + 0x9f8]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x435988
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x435a01
movsx ecx, byte [esp + 0x28]
push ecx
call fcn.00461bed
add esp, 4
test eax, eax
jne 0x4359bb
movsx edx, byte [esp + 0x3b]
push edx
call fcn.00461bed
add esp, 4
test eax, eax
je 0x435a01
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x3114]
cmp ecx, eax
jae 0x4359d5
mov eax, ecx
jmp 0x4359e0
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 0x435a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
push 0x2710
lea eax, [esp + 0x9fc]
push ebx
push eax
call fcn.00460000
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 0x435abd
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0xa08]
mov byte [esp + eax + 0x28], cl
inc eax
cmp cl, bl
jne 0x435a40
cmp esi, ebx
je 0x435ac3
movsx eax, byte [esp + 0x28]
push eax
call fcn.00461bed
add esp, 4
test eax, eax
jne 0x435a78
movsx ecx, byte [esp + 0x3b]
push ecx
call fcn.00461bed
add esp, 4
test eax, eax
je 0x435ac3
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 0x435a94
mov eax, ecx
jmp 0x435a9b
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 0x435ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x435ad2
mov eax, ebp
mov ecx, dword [esp + 0x3108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x30fc
ret 8