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

Disassembly:
push 0xffffffffffffffff
push 0x49fa40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push 0x4adf58
lea ecx, [esi + 0x170]
mov dword [esp + 0x24], esi
mov dword [esi + 0x1b1c], ebx
call fcn.00444950
or ebp, 0xffffffff
cmp eax, ebp
je 0x4175c2
cmp eax, ebx
jl 0x4176f6
cmp eax, dword [esi + 0x100]
jge 0x4176f6
mov ecx, dword [esi + 0xfc]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004015b0
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.0045bc62
push ebx
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 1
call fcn.0045bcfa
test eax, eax
jne 0x41757b
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.0045bc8b
add esi, 0xfffffff0
mov dword [esp + 0x5c], ebp
lea edx, [esi + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x4175c2
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4175c2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebp
jne 0x4175e1
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.0045bc8b
add esi, 0xfffffff0
mov dword [esp + 0x5c], ebp
lea eax, [esi + 0xc]
lock xadd dword [eax], ebp
dec ebp
test ebp, ebp
jg 0x4175c2
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.004820da
add esp, 0x4c
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
je 0x4176ba
cmp ebp, 0xffffffff
je 0x4176ba
push ebp
call fcn.00451e0a
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 [0x4adf44]
mov edx, dword [str.PORT_SECOND_ENUM]
mov ecx, dword [0x4adf48]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4adf50]
mov dword [esp + 0x38], edx
mov edx, dword [0x4adf4c]
mov dword [esp + 0x40], ecx
mov cl, byte [0x4adf54]
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 0x417662
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.00416b20
add esp, 0x18
cmp eax, edi
jae 0x417696
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x1b1c], 1
push esi
call fcn.00451dff
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.0045bc8b
lea ecx, [esp + 0x14]
call fcn.004014d0
jmp 0x4175c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], bl
call fcn.0045bc8b
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 0x4175c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
jmp 0x4175bd
call fcn.00451f1d
int3