Function at 0x4174b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5550
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push 0x4c421c
lea ecx, [esi + 0x190]
mov dword [esp + 0x24], esi
mov dword [esi + 0x2040], ebx
call fcn.00455cc0
or ebp, 0xffffffff
cmp eax, ebp
je 0x4175d2
cmp eax, ebx
jl 0x417706
cmp eax, dword [esi + 0x100]
jge 0x417706
mov ecx, dword [esi + 0xfc]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401560
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.00475e73
push ebx
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 1
call fcn.00475f0b
test eax, eax
jne 0x41758b
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.00475e9c
add esi, 0xfffffff0
mov dword [esp + 0x5c], ebp
lea edx, [esi + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4175d2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4175d2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebp
jne 0x4175f1
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.00475e9c
add esi, 0xfffffff0
mov dword [esp + 0x5c], ebp
lea eax, [esi + 0xc]
lock xadd dword [eax], ebp
dec ebp
test ebp, ebp
jg 0x4175d2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004945a7
add esp, 0x4c
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
je 0x4176ca
cmp ebp, 0xffffffff
je 0x4176ca
push ebp
call fcn.00464376
add esp, 4
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov esi, eax
push esi
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c4fd0]
mov edx, dword [str.PORT_SECOND_ENUM]
mov ecx, dword [0x4c4fd4]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4c4fdc]
mov dword [esp + 0x38], edx
mov edx, dword [0x4c4fd8]
mov dword [esp + 0x40], ecx
mov cl, byte [0x4c4fe0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], edx
mov byte [esp + 0x4c], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417672
push ebx
sub eax, edx
push ebx
lea eax, [esp + eax + 0x40]
push eax
lea edx, [esp + 0x44]
push edx
lea edi, [esi + ebp]
push edi
push esi
call fcn.00416a50
add esp, 0x18
cmp eax, edi
jae 0x4176a6
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x2040], 1
push esi
call fcn.0046436b
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.00475e9c
lea ecx, [esp + 0x14]
call fcn.00401480
jmp 0x4175d2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.00475e9c
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
jmp 0x4175cd
call fcn.00464489
int3