Function at 0x43f8f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d2ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x296c
call fcn.0044f640
mov al, byte [ebp + 8]
push ebx
xor ebx, ebx
cmp al, bl
push esi
push edi
mov byte [esp + 0x13], bl
jne 0x43f92b
call fcn.0043edc0
movsx eax, al
push eax
lea ecx, [esp + 0x16c]
push str.._c:
push ecx
call fcn.004505c0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x43fc15
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ebx
mov ecx, 0x9c4
lea edi, [esp + 0x26c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x2710
lea edx, [esp + 0x274]
push edx
push 0xc
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43fc0e
mov ecx, dword [esp + 0x280]
cmp ecx, 0x2710
jae 0x43fc0e
mov edi, dword [esp + 0x278]
cmp edi, 0x2710
jae 0x43fc0e
mov eax, 0x2710
sub eax, ecx
cmp eax, 0x64
jle 0x43f9f6
mov eax, 0x64
lea edx, [eax - 1]
mov eax, 0x2710
sub eax, edi
cmp eax, 0x64
jle 0x43fa0a
mov eax, 0x64
cmp edx, 1
lea esi, [eax - 1]
jl 0x43fc0a
cmp esi, 1
jl 0x43fc0a
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x280]
push edx
lea edx, [esp + ecx + 0x26c]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.0043ec20
mov ecx, dword [esp + 0x284]
push esi
lea edx, [esp + ecx + 0x278]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.00451160
movsx ecx, byte [esp + 0xb0]
push ecx
call fcn.0044fdc3
add esp, 0x1c
test eax, eax
jne 0x43faa5
movsx edx, byte [esp + 0xab]
push edx
call fcn.0044fdc3
add esp, 4
test eax, eax
je 0x43fc0a
mov esi, 0xf
lea eax, [esp + 0x98]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43fac0
sub eax, edx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004015d0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x298c], ebx
call fcn.0043f7f0
add esp, 8
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x2990], 1
call fcn.004014e0
mov eax, dword [esp + 0x78]
mov edi, 0x10
cmp eax, edi
jb 0x43fb22
mov eax, dword [esp + 0x64]
push eax
call fcn.00469560
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0x2984], 0xffffffff
jb 0x43fb4c
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00469560
add esp, 4
lea eax, [esp + 0x100]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43fb62
sub eax, edx
push eax
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x30]
call fcn.004015d0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x298c], 2
call fcn.0043f7f0
add esp, 8
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x2990], 3
call fcn.004014e0
cmp dword [esp + 0x94], edi
jb 0x43fbcc
mov edx, dword [esp + 0x80]
push edx
call fcn.00469560
add esp, 4
cmp dword [esp + 0x40], edi
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jb 0x43fbf8
mov eax, dword [esp + 0x2c]
push eax
call fcn.00469560
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], ebx
jne 0x43fc05
cmp dword [esi + 0x14], ebx
je 0x43fc0a
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x297c]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret