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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad603
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x4cd094]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
push edi
mov eax, dword [0x4cd094]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
push 0x512b7c
push str._sServer.cfg
mov eax, 0x104
lea edi, [esp + 0x4a4]
call fcn.00408ae0
add esp, 8
test eax, eax
je 0x40a81e
call fcn.00458bc0
xor al, al
jmp 0x40b199
push 0
push 0x80
push 3
push 0
push 1
push accept
lea eax, [esp + 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a817
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
add eax, 1
push eax
call fcn.004803f5
mov ecx, dword [esp + 0x20]
add esp, 4
mov ebx, eax
push 0
lea edx, [esp + 0x20]
push edx
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x24]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x9c]
mov eax, ebx
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b197
lea ecx, [ecx]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.common
call ebx
push eax
push str.common
lea ecx, [esp + 0xa4]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call esi
sub eax, 2
je 0x40a9c8
push str.FarmManager
call ebx
push eax
push str.FarmManager
lea eax, [esp + 0xa4]
push eax
call ebx
push eax
lea ecx, [esp + 0xa8]
push ecx
push 0x10001
push 0x400
call esi
sub eax, 2
je 0x40a9c8
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b197
push 0x4b6b50
call ebx
push eax
push 0x4b6b50
mov edx, edi
push edx
call ebx
push eax
mov eax, edi
push eax
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x40b197
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
push 0x4b6b54
call ebx
push eax
push 0x4b6b54
lea ecx, [esp + 0xa4]
push ecx
call ebx
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
je 0x40b17b
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40a972
jmp 0x40b17b
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b197
push 0x4b6b50
call ebx
push eax
push 0x4b6b50
mov eax, edi
push eax
call ebx
push eax
mov ecx, edi
push ecx
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x40b197
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
push 0x4b6b54
call ebx
push eax
push 0x4b6b54
lea edx, [esp + 0xa4]
push edx
call ebx
push eax
lea eax, [esp + 0xa8]
push eax
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
je 0x40b17b
push str.certification
call ebx
push eax
push str.certification
lea ecx, [esp + 0xa4]
push ecx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringA]
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x40ab3c
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov eax, 0x512c98
lea edx, [esp + 0x9c]
xor edi, edi
mov esi, 0x100
sub edx, eax
lea esp, [esp]
mov cl, byte [edx + eax]
test cl, cl
je 0x40aae3
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x40aad0
jmp 0x40aae7
test esi, esi
jne 0x40aaef
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
jne 0x40a812
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov eax, edi
push eax
call fcn.004815d0
add esp, 4
mov dword [0x512cb8], eax
jmp 0x40b146
push str.certification_ip_bind
call ebx
push eax
push str.certification_ip_bind
lea ecx, [esp + 0xa4]
push ecx
call ebx
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x40abcf
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov eax, 0x512ca8
lea edx, [esp + 0x9c]
xor edi, edi
mov esi, 0x100
sub edx, eax
mov edi, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x40abb3
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x40aba0
jmp 0x40abb7
test esi, esi
jne 0x40abbf
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
jne 0x40a812
jmp 0x40b146
push str.debug_option_debugger_present
call ebx
push eax
push str.debug_option_debugger_present
lea eax, [esp + 0xa4]
push eax
call ebx
push eax
lea ecx, [esp + 0xa8]
push ecx
push 0x10001
push 0x400
call esi
sub eax, 2
lea edi, [esp + 0x9c]
jne 0x40acf4
mov eax, dword [esp + 0x14]
mov dword [0x512cc4], 0
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov esi, 0x4b6b50
call fcn.0040c620
test eax, eax
jne 0x40b17b
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b146
push 0x4b6b54
call ebx
push eax
push 0x4b6b54
lea edx, [esp + 0xa4]
push edx
call ebx
push eax
lea eax, [esp + 0xa8]
push eax
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
je 0x40b146
mov esi, 0x4cf7f4
nop
mov edi, dword [esi - 4]
push edi
call ebx
push eax
push edi
lea ecx, [esp + 0xa4]
push ecx
call ebx
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
jne 0x40acc8
mov eax, dword [esi]
or dword [0x512cc4], eax
add esi, 8
cmp esi, 0x4cf83c
jl 0x40ac90
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40ac51
jmp 0x40b146
mov esi, str.debug_option_stand_alone
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40add0
mov dword [0x512cc8], eax
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov esi, 0x4b6b50
call fcn.0040c620
test eax, eax
jne 0x40b17b
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b146
mov edi, edi
mov esi, 0x4b6b54
lea edi, [esp + 0x9c]
call fcn.0040c620
test eax, eax
je 0x40b146
mov edi, 0x4cf7f4
mov edi, edi
mov esi, dword [edi - 4]
push esi
call ebx
push eax
push esi
lea ecx, [esp + 0xa4]
push ecx
call ebx
push eax
lea edx, [esp + 0xa8]
push edx
push 0x10001
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
jne 0x40ada8
mov eax, dword [edi]
or dword [0x512cc8], eax
add edi, 8
cmp edi, 0x4cf83c
jl 0x40ad70
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40ad50
jmp 0x40b146
mov esi, str.netengine_debug_option_debugger_present
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40aea3
mov dword [0x512ccc], eax
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov esi, 0x4b6b50
call fcn.0040c620
test eax, eax
jne 0x40b17b
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b146
lea ebx, [ebx]
mov esi, 0x4b6b54
lea edi, [esp + 0x9c]
call fcn.0040c620
test eax, eax
je 0x40b146
mov dword [esp + 0x18], 0x4cf7f4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 4]
lea edi, [esp + 0x9c]
call fcn.0040c620
test eax, eax
jne 0x40ae74
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
or dword [0x512ccc], eax
mov eax, dword [esp + 0x18]
add eax, 8
cmp eax, 0x4cf83c
mov dword [esp + 0x18], eax
jl 0x40ae51
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40ae30
jmp 0x40b146
mov esi, str.netengine_debug_option_stand_alone
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40af73
mov dword [0x512cd0], eax
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov esi, 0x4b6b50
call fcn.0040c620
test eax, eax
jne 0x40b17b
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b146
lea ecx, [ecx]
mov esi, 0x4b6b54
lea edi, [esp + 0x9c]
call fcn.0040c620
test eax, eax
je 0x40b146
mov dword [esp + 0x18], 0x4cf7f4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 4]
lea edi, [esp + 0x9c]
call fcn.0040c620
test eax, eax
jne 0x40af44
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
or dword [0x512cd0], eax
mov eax, dword [esp + 0x18]
add eax, 8
cmp eax, 0x4cf83c
mov dword [esp + 0x18], eax
jl 0x40af21
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40af00
jmp 0x40b146
mov esi, str.DumpMsgPool
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40afbc
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov ecx, edi
push ecx
call fcn.004815d0
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x512cd4], eax
jmp 0x40b146
mov esi, str.ReportConnectionLog
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40b005
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov edx, edi
push edx
call fcn.004815d0
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x512cd8], eax
jmp 0x40b146
mov esi, str.MaxSendQueDepth
call fcn.0040c620
test eax, eax
lea edi, [esp + 0x9c]
jne 0x40b044
mov eax, dword [esp + 0x14]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov eax, edi
push eax
call fcn.004815d0
add esp, 4
mov dword [0x512cdc], eax
jmp 0x40b146
mov esi, str.PromptAtClose
call fcn.0040c620
test eax, eax
jne 0x40b08d
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b17b
mov ecx, edi
push ecx
call fcn.004815d0
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x512ce0], eax
jmp 0x40b146
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x84]
call fcn.00401de0
mov dword [esp + 0x5b8], 0
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
je 0x40b164
mov eax, edi
push eax
lea ecx, [esp + 0x30]
call fcn.00401de0
mov byte [esp + 0x5b8], 1
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0040b440
mov byte [esp + 0x5b8], 2
push eax
push 0x512ce8
lea ebx, [esp + 0x28]
call fcn.0040b2d0
mov byte [esp + 0x5b8], 1
lea eax, [esp + 0x48]
push eax
call fcn.0040b1c0
mov byte [esp + 0x5b8], 0
lea ecx, [esp + 0x2c]
call fcn.00401fc0
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.00401fc0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40aa24
jmp 0x40b17b
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.00401fc0
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.00441100
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40a8a0
mov al, 1
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.004804c6
mov esp, ebp
pop ebp
ret