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

Disassembly:
push 0xffffffffffffffff
push 0x508701
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x540a54]
xor eax, esp
mov dword [esp + 0x588], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x540a54]
xor eax, esp
push eax
lea eax, [esp + 0x5a0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x5b0]
push 0x5a322c
push str._sServer.cfg
lea eax, [esp + 0x4a0]
push 0x104
push eax
mov dword [esp + 0x28], ebp
call fcn.00431690
add esp, 0x10
test eax, eax
je 0x4660e5
call fcn.004a6300
xor al, al
jmp 0x466c3b
push 0
push 0x80
push 3
push 0
push 1
push connect
lea ecx, [esp + 0x4b0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4660de
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
add eax, 1
push eax
call fcn.004dbe7b
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.004dc170
lea eax, [esp + 0xa4]
push eax
push edi
mov dword [0x5a346c], 0
call fcn.0048abc0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x466c39
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x466197
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 0x4662c1
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 0x4662c1
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c39
push 0x51df90
call ebx
push eax
push 0x51df90
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 0x466c39
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea ebx, [ebx]
push 0x51db1c
call ebx
push eax
push 0x51db1c
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 0x466c1e
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x466270
jmp 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c39
push 0x51df90
call ebx
push eax
push 0x51df90
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 0x466c39
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
jmp 0x466336
mov edi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push 0x51db1c
call ebx
push eax
push 0x51db1c
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 0x466c1e
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 0x466454
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
mov eax, 0x5a3348
lea edx, [esp + 0x98]
xor ebp, ebp
mov edi, 0x10
sub edx, eax
lea ecx, [edi + 0x7fffffee]
test ecx, ecx
je 0x4663ed
mov cl, byte [edx + eax]
test cl, cl
je 0x4663ed
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x4663d0
jmp 0x4663f1
test edi, edi
jne 0x4663f9
sub eax, 1
mov ebp, 0x8007007a
test ebp, ebp
mov byte [eax], 0
jne 0x4660d9
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea ecx, [esp + 0x98]
push ecx
call fcn.004dd065
add esp, 4
mov dword [0x5a3368], eax
jmp 0x466bed
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 0x4664ee
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
mov eax, 0x5a3358
lea edx, [esp + 0x98]
xor ebp, ebp
mov edi, 0x10
sub edx, eax
lea ecx, [edi + 0x7fffffee]
test ecx, ecx
je 0x4664d2
mov cl, byte [eax + edx]
test cl, cl
je 0x4664d2
mov byte [eax], cl
add eax, 1
sub edi, 1
jne 0x4664b5
jmp 0x4664d6
test edi, edi
jne 0x4664de
sub eax, 1
mov ebp, 0x8007007a
test ebp, ebp
mov byte [eax], 0
jne 0x4660d9
jmp 0x466bed
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 0x466554
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
add esp, 4
mov dword [0x5a346c], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.debug_option_debugger_present
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466639
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x5a3478], eax
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push 0x51df90
push edx
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466bed
lea esp, [esp]
lea ecx, [esp + 0x98]
push 0x51db1c
push ecx
call fcn.00434200
add esp, 8
test eax, eax
je 0x466bed
mov edi, 0x53e65c
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466612
mov ecx, dword [edi]
or dword [0x5a3478], ecx
add edi, 8
cmp edi, 0x53e6a4
jl 0x4665f2
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4665d0
jmp 0x466bed
lea eax, [esp + 0x98]
push str.debug_option_stand_alone
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466719
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x5a347c], eax
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push 0x51df90
push edx
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466bed
mov edi, edi
lea ecx, [esp + 0x98]
push 0x51db1c
push ecx
call fcn.00434200
add esp, 8
test eax, eax
je 0x466bed
mov edi, 0x53e65c
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4666f2
mov ecx, dword [edi]
or dword [0x5a347c], ecx
add edi, 8
cmp edi, 0x53e6a4
jl 0x4666d2
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4666b0
jmp 0x466bed
lea eax, [esp + 0x98]
push str.netengine_debug_option_debugger_present
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4667f9
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x5a3480], eax
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push 0x51df90
push edx
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466bed
mov edi, edi
lea ecx, [esp + 0x98]
push 0x51db1c
push ecx
call fcn.00434200
add esp, 8
test eax, eax
je 0x466bed
mov edi, 0x53e65c
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4667d2
mov ecx, dword [edi]
or dword [0x5a3480], ecx
add edi, 8
cmp edi, 0x53e6a4
jl 0x4667b2
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x466790
jmp 0x466bed
lea eax, [esp + 0x98]
push str.netengine_debug_option_stand_alone
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4668d9
lea ecx, [esp + 0x98]
push ecx
push esi
mov dword [0x5a3484], eax
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push 0x51df90
push edx
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466c1e
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466bed
mov edi, edi
lea ecx, [esp + 0x98]
push 0x51db1c
push ecx
call fcn.00434200
add esp, 8
test eax, eax
je 0x466bed
mov edi, 0x53e65c
mov edx, dword [edi - 4]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4668b2
mov ecx, dword [edi]
or dword [0x5a3484], ecx
add edi, 8
cmp edi, 0x53e6a4
jl 0x466892
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x466870
jmp 0x466bed
lea eax, [esp + 0x98]
push str.ReportConnectionLog
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466931
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x5a3488], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.MaxSendQueDepth
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x46697f
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
add esp, 4
mov dword [0x5a348c], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.PromptAtClose
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x4669d7
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x5a3490], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.WritePerfLogToText
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466a2f
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x5a3498], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.SystemAffinityMaskMode
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466a7d
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
add esp, 4
mov dword [0x5a349c], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push str.ProcessAffinityMask
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466ae2
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
cmp dword [0x5a349c], 0
jne 0x466bed
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
mov edx, 1
mov ecx, eax
shl edx, cl
add esp, 4
or dword [0x5a34a0], edx
jmp 0x466bed
lea eax, [esp + 0x98]
push str.MSGID_VALIDATOR_BLOCK
push eax
call fcn.00434200
add esp, 8
test eax, eax
jne 0x466b3a
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c1e
lea edx, [esp + 0x98]
push edx
call fcn.004dd065
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x5a34b8], eax
jmp 0x466bed
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x80]
call fcn.00425160
mov dword [esp + 0x5a8], 0
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
je 0x466c0a
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x2c]
call fcn.00425160
mov byte [esp + 0x5a8], 1
push eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x4c]
call fcn.004654f0
mov byte [esp + 0x5a8], 2
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x5a34a8
call fcn.00465e70
mov byte [esp + 0x5a8], 1
lea ecx, [esp + 0x44]
call fcn.004652f0
mov byte [esp + 0x5a8], 0
lea ecx, [esp + 0x28]
call fcn.00424580
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.00424580
lea edx, [esp + 0x98]
push edx
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x466330
jmp 0x466c1e
mov dword [esp + 0x5a8], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.00424580
lea eax, [esp + 0x98]
push eax
push esi
call fcn.0048abc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x466193
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.004dc8c2
add esp, 0x598
ret