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

Disassembly:
push 0xffffffffffffffff
push 0x17e7731
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x1845170]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1845170]
xor eax, esp
push eax
lea eax, [esp + 0x5a0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5b0]
push 0x1868aa4
push str._sServer.cfg
lea eax, [esp + 0x4a0]
push 0x104
push eax
mov dword [esp + 0x28], ebp
call fcn.0167a070
add esp, 0x10
test eax, eax
je 0x170bb65
call fcn.0176dcc0
xor al, al
jmp 0x170c6bb
push 0
push 0x80
push 3
push 0
push 1
push accept
lea ecx, [esp + 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x170bb5e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
add eax, 1
push eax
call fcn.017af02b
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0
lea eax, [esp + 0x18]
push eax
mov byte [edx + edi], 0
mov ecx, dword [esp + 0x1c]
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3ff
lea edx, [esp + 0x9d]
push 0
push edx
mov byte [esp + 0xa4], 0
call fcn.017b03e0
lea eax, [esp + 0xa4]
push eax
push edi
mov dword [0x1868ce4], 0
call fcn.0174d3e0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x170c6b9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x170bc17
mov ebp, dword [esp + 0x18]
push str.common
call ebx
push eax
push str.common
lea ecx, [esp + 0xa0]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push eax
lea edx, [esp + 0xa4]
push edx
push 0x10001
push 0x400
call edi
sub eax, 2
je 0x170bd41
push ebp
call ebx
push eax
push ebp
lea eax, [esp + 0xa0]
push eax
call ebx
push eax
lea ecx, [esp + 0xa4]
push ecx
push 0x10001
push 0x400
call edi
sub eax, 2
je 0x170bd41
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c6b9
push 0x180a360
call ebx
push eax
push 0x180a360
lea eax, [esp + 0xa0]
push eax
call ebx
push eax
lea ecx, [esp + 0xa4]
push ecx
push 0x10001
push 0x400
call edi
sub eax, 2
jne 0x170c6b9
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea ebx, [ebx]
push 0x1809e4c
call ebx
push eax
push 0x1809e4c
lea eax, [esp + 0xa0]
push eax
call ebx
push eax
lea ecx, [esp + 0xa4]
push ecx
push 0x10001
push 0x400
call edi
sub eax, 2
je 0x170c69e
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170bcf0
jmp 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c6b9
push 0x180a360
call ebx
push eax
push 0x180a360
lea ecx, [esp + 0xa0]
push ecx
call ebx
push eax
lea edx, [esp + 0xa4]
push edx
push 0x10001
push 0x400
call edi
sub eax, 2
jne 0x170c6b9
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
jmp 0x170bdb6
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0x1809e4c
call ebx
push eax
push 0x1809e4c
lea ecx, [esp + 0xa0]
push ecx
call ebx
push eax
lea edx, [esp + 0xa4]
push edx
push 0x10001
push 0x400
call edi
sub eax, 2
je 0x170c69e
push str.certification
call ebx
push eax
push str.certification
lea eax, [esp + 0xa0]
push eax
call ebx
push eax
lea ecx, [esp + 0xa4]
push ecx
push 0x10001
push 0x400
call edi
sub eax, 2
jne 0x170bed4
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
mov eax, 0x1868bc0
lea edx, [esp + 0x98]
xor ebp, ebp
mov edi, 0x10
sub edx, eax
lea ecx, [edi + 0x7fffffee]
test ecx, ecx
je 0x170be6d
mov cl, byte [edx + eax]
test cl, cl
je 0x170be6d
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x170be50
jmp 0x170be71
test edi, edi
jne 0x170be79
sub eax, 1
mov ebp, 0x8007007a
test ebp, ebp
mov byte [eax], 0
jne 0x170bb59
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea ecx, [esp + 0x98]
push ecx
call fcn.017b06f3
add esp, 4
mov dword [0x1868be0], eax
jmp 0x170c66d
push str.certification_ip_bind
call ebx
push eax
push str.certification_ip_bind
lea edx, [esp + 0xa0]
push edx
call ebx
push eax
lea eax, [esp + 0xa4]
push eax
push 0x10001
push 0x400
call edi
sub eax, 2
jne 0x170bf6e
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
mov eax, 0x1868bd0
lea edx, [esp + 0x98]
xor ebp, ebp
mov edi, 0x10
sub edx, eax
lea ecx, [edi + 0x7fffffee]
test ecx, ecx
je 0x170bf52
mov cl, byte [eax + edx]
test cl, cl
je 0x170bf52
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x170bf35
jmp 0x170bf56
test edi, edi
jne 0x170bf5e
sub eax, 1
mov ebp, 0x8007007a
test ebp, ebp
mov byte [eax], 0
jne 0x170bb59
jmp 0x170c66d
push str.myport
call ebx
push eax
push str.myport
lea edx, [esp + 0xa0]
push edx
call ebx
push eax
lea eax, [esp + 0xa4]
push eax
push 0x10001
push 0x400
call edi
sub eax, 2
jne 0x170bfd4
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
add esp, 4
mov dword [0x1868ce4], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.debug_option_debugger_present
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c0b9
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x1868cf0], eax
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push 0x180a360
push edx
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c66d
lea esp, [esp]
lea ecx, [esp + 0x98]
push 0x1809e4c
push ecx
call fcn.016628f0
add esp, 8
test eax, eax
je 0x170c66d
mov edi, 0x1842a74
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c092
mov ecx, dword [edi]
or dword [0x1868cf0], ecx
add edi, 8
cmp edi, 0x1842abc
jl 0x170c072
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170c050
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.debug_option_stand_alone
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c199
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x1868cf4], eax
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push 0x180a360
push edx
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c66d
mov edi, edi
lea ecx, [esp + 0x98]
push 0x1809e4c
push ecx
call fcn.016628f0
add esp, 8
test eax, eax
je 0x170c66d
mov edi, 0x1842a74
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c172
mov ecx, dword [edi]
or dword [0x1868cf4], ecx
add edi, 8
cmp edi, 0x1842abc
jl 0x170c152
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170c130
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.netengine_debug_option_debugger_present
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c279
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x1868cf8], eax
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push 0x180a360
push edx
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c66d
mov edi, edi
lea ecx, [esp + 0x98]
push 0x1809e4c
push ecx
call fcn.016628f0
add esp, 8
test eax, eax
je 0x170c66d
mov edi, 0x1842a74
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c252
mov ecx, dword [edi]
or dword [0x1868cf8], ecx
add edi, 8
cmp edi, 0x1842abc
jl 0x170c232
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170c210
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.netengine_debug_option_stand_alone
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c359
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x1868cfc], eax
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push 0x180a360
push edx
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c69e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c66d
mov edi, edi
lea ecx, [esp + 0x98]
push 0x1809e4c
push ecx
call fcn.016628f0
add esp, 8
test eax, eax
je 0x170c66d
mov edi, 0x1842a74
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c332
mov ecx, dword [edi]
or dword [0x1868cfc], ecx
add edi, 8
cmp edi, 0x1842abc
jl 0x170c312
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170c2f0
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.ReportConnectionLog
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c3b1
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x1868d00], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.MaxSendQueDepth
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c3ff
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
add esp, 4
mov dword [0x1868d04], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.PromptAtClose
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c457
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x1868d08], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.WritePerfLogToText
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c4af
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x1868d10], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.SystemAffinityMaskMode
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c4fd
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
add esp, 4
mov dword [0x1868d14], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.ProcessAffinityMask
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c562
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
cmp dword [0x1868d14], 0
jne 0x170c66d
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
mov edx, 1
mov ecx, eax
shl edx, cl
add esp, 4
or dword [0x1868d18], edx
jmp 0x170c66d
lea eax, [esp + 0x98]
push str.MSGID_VALIDATOR_BLOCK
push eax
call fcn.016628f0
add esp, 8
test eax, eax
jne 0x170c5ba
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c69e
lea edx, [esp + 0x98]
push edx
call fcn.017b06f3
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x1868d30], eax
jmp 0x170c66d
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x80]
call fcn.01667d20
mov dword [esp + 0x5a8], 0
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
je 0x170c68a
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x2c]
call fcn.01667d20
mov byte [esp + 0x5a8], 1
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x4c]
call fcn.016fb5a0
mov byte [esp + 0x5a8], 2
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x1868d20
call fcn.016fc560
mov byte [esp + 0x5a8], 1
lea ecx, [esp + 0x44]
call fcn.016f7d80
mov byte [esp + 0x5a8], 0
lea ecx, [esp + 0x28]
call fcn.01666500
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.01666500
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170bdb0
jmp 0x170c69e
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.01666500
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0174d3e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x170bc13
mov al, 1
mov ecx, dword [esp + 0x5a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x588]
xor ecx, esp
call fcn.017b0193
add esp, 0x598
ret