Function at 0x5055ee
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov eax, 0x7b9e3b
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004fd7d8
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x505653
push ebx
call fcn.0051c630
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x505667
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc8
call fcn.0051dab1
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
push 0
push 3
push 0
push dword [ebp - 0x24]
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x5056d6
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x50570c
push 0x80000101
push 0
push 0
push 1
mov ebx, pe_nt_image_headers32
call fcn.0051ca91
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x5058f2
mov dword [ebp - 0xc], 0x400
push 0x80000301
push 0
push 0xc
push 1
mov ebx, 0x1bc
call fcn.0051d741
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x505748
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x1bc
call fcn.0051d741
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x50577f
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esp
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x505795
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5057a0
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x5057bd
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5057d2
add eax, 8
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5057dd
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyn]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x5057fa
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x30]
push 0xc
push dword [ebp - 0x28]
push 0x2d1400
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x50583b
push 6
call fcn.0051c636
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x5058af
push 0x80000301
push 0
push dword [ebp - 0x1c]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x505865
mov eax, 0x7b955c
push eax
push 2
mov ebx, 0x1a0
call fcn.0051cf21
add esp, 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004fafe7
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x505897
push ebx
call fcn.0051c630
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x5058ab
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x5058d1
push 6
call fcn.0051c636
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5058ed
push eax
mov ebx, eax
call fcn.004f9e2e
inc eax
push eax
call fcn.0051c62a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5058f2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x505903
push ebx
call fcn.0051c630
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x505913
push ebx
call fcn.0051c630
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x505923
push ebx
call fcn.0051c630
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x505933
push ebx
call fcn.0051c630
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret