Function at 0x4b6ec0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x94], eax
push esi
push edi
mov byte [ebp - 0x1a0], 0
push 0x103
push 0
lea eax, [ebp - 0x19f]
push eax
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x90], 0
push 0x8c
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
cmp dword [ebp + 8], 0
jne 0x4b6f40
xor eax, eax
jmp 0x4b7174
mov dword [ebp - 0x1a8], 1
push 0x90
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.005b02a0
add esp, 0xc
push 0x32b6
push 0x69b2a0
push 0x280
call fcn.0040312f
add esp, 0xc
push str.fTender.cfg
lea eax, [ebp - 0x1a0]
push eax
call fcn.0040311b
add esp, 8
push 0
push 0
push 0
push 0x20
push 3
push 0
push 7
push closesocket
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.004020c2
add esp, 0x24
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
jne 0x4b7028
mov dword [ebp - 0x1b0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 2
je 0x4b7013
cmp dword [ebp - 0x1b0], 3
je 0x4b7013
cmp dword [ebp - 0x1b0], 0xf
je 0x4b7013
cmp dword [ebp - 0x1b0], 0x35
je 0x4b7013
mov edx, dword [ebp - 0x1b0]
push edx
push 0x69b2b8
lea eax, [ebp - 0x1a0]
push eax
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_CreateFileTimeOut__s__FAILED:__s_ld
call fcn.00401014
add esp, 0x10
mov dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1a8]
jmp 0x4b7174
push 0
lea ecx, [ebp - 0x1ac]
push ecx
push 0x90
lea edx, [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b70a8
push 0x69b318
mov ecx, dword [ebp - 0x1ac]
push ecx
lea edx, [ebp - 0x1a0]
push edx
push str.:5:ReadTenderTypesFlagsLegacyTAMS___FAILED:_ReadFile__s__FAILED:_ByteCount_u:__s
call fcn.00401014
add esp, 0x10
push 0x32d0
push 0x69b37c
push 0x69b388
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.00401f5a
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a8], 0
mov eax, dword [ebp - 0x1a8]
jmp 0x4b7174
cmp dword [ebp - 0x1ac], 0x90
jae 0x4b70ed
push 0x90
mov ecx, dword [ebp - 0x1ac]
push ecx
push str.:2:ReadTenderTypesFlagsLegacyTAMS___EAP:_Only__u_of__d_bytes_could_be_read.
call fcn.00401014
add esp, 0xc
push 0x90
push 0
lea edx, [ebp - 0x90]
push edx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x1a8], 0
cmp dword [ebp - 0x90], 0
jl 0x4b70ff
cmp dword [ebp - 0x90], 7
jle 0x4b7133
mov eax, dword [ebp - 0x90]
push eax
push str.:6:ReadTenderTypesFlagsLegacyTAMS___EAP:_ttef.iCurSlot_is_invalid:__d
call fcn.00401014
add esp, 8
push 0x90
push 0
lea ecx, [ebp - 0x90]
push ecx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x1a8], 0
cmp dword [ebp + 8], 0
je 0x4b7149
mov ecx, 0x24
lea esi, [ebp - 0x90]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push 0x32e7
push str..Network.c
push str.ReadTenderTypesFlagsLegacyTAMS
mov edx, dword [ebp - 0x1a4]
push edx
call fcn.00401f5a
mov dword [ebp - 0x1a4], 0
mov eax, dword [ebp - 0x1a8]
pop edi
pop esi
mov ecx, dword [ebp - 0x94]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret