Function at 0x404130
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x47a1cb
mov eax, dword fs:[0]
push eax
mov eax, 0x2874
call fcn.00418640
mov eax, dword [0x4d55e4]
xor eax, esp
mov dword [esp + 0x2870], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d55e4]
xor eax, esp
push eax
lea eax, [esp + 0x2888]
mov dword fs:[0], eax
mov eax, dword [0x4d365c]
mov esi, dword [esp + 0x289c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004718b0
mov ecx, dword [esp + 0x2898]
push ecx
xor ebx, ebx
mov ecx, eax
mov dword [esp + 0x2894], ebx
call fcn.00471780
push eax
lea edx, [esp + 0x7c]
push edx
call fcn.00418351
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x2890], 0xffffffff
call fcn.004717a0
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4043c6
mov eax, 0xf
push 0x2710
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
xor eax, eax
lea ecx, [esp + 0x178]
push ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00417b00
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x180]
push eax
push 0xc
lea ecx, [esp + 0x44]
push ecx
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x404304
mov eax, dword [esp + 0x180]
cmp eax, ebx
je 0x404284
cmp eax, dword [esp + 0x14]
ja 0x404284
lea edx, [esp + eax + 0x174]
push 0x63
push edx
lea eax, [esi + 4]
push eax
call fcn.004184d0
add esp, 0xc
mov eax, dword [esp + 0x184]
cmp eax, ebx
je 0x4042ab
cmp eax, dword [esp + 0x14]
ja 0x4042ab
push 0x63
lea ecx, [esp + eax + 0x178]
push ecx
lea edx, [esi + 0x68]
push edx
call fcn.004184d0
add esp, 0xc
mov eax, dword [esp + 0x188]
cmp eax, ebx
je 0x4042d5
cmp eax, dword [esp + 0x14]
ja 0x4042d5
push 0x63
lea eax, [esp + eax + 0x178]
push eax
lea ecx, [esi + 0x130]
push ecx
call fcn.004184d0
add esp, 0xc
mov eax, dword [esp + 0x18c]
cmp eax, ebx
je 0x404304
cmp eax, 0xffffffff
je 0x404304
cmp eax, dword [esp + 0x14]
ja 0x404304
lea edx, [esp + eax + 0x174]
push 0x63
push edx
lea eax, [esi + 0xcc]
push eax
call fcn.004184d0
add esp, 0xc
cmp dword [esp + 0x6c], ebx
jne 0x40435a
push 0x2710
lea ecx, [esp + 0x178]
push ebx
push ecx
call fcn.00417b00
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x180]
push eax
push ebx
push ebx
push 0x2d0c10
push edi
call ebp
test eax, eax
je 0x40435a
push 0x63
lea ecx, [esp + 0x188]
push ecx
add esi, 0xcc
push esi
call fcn.004184d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x404379
mov edx, dword [esp + 0x40]
push edx
call fcn.0040cd99
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x70], esi
jb 0x40439c
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040cd99
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2870]
xor ecx, esp
call fcn.00417490
add esp, 0x2880
ret
mov eax, 0xb
jmp 0x40439e