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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d013
mov eax, dword fs:[0]
push eax
sub esp, 0x5a0
mov eax, dword [0x54d154]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push esi
push edi
mov eax, dword [0x54d154]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
push 0x59520c
push str._sServer.cfg
mov eax, 0x104
lea edi, [esp + 0x4a4]
call fcn.004107a0
add esp, 8
test eax, eax
je 0x48453e
call fcn.004b7940
xor al, al
jmp 0x484eb9
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 0x484537
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
add eax, 1
push eax
call fcn.004e3772
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.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484eb7
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 0x4846e8
push str.GlobalManager
call ebx
push eax
push str.GlobalManager
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 0x4846e8
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484eb7
push 0x527b38
call ebx
push eax
push 0x527b38
mov edx, edi
push edx
call ebx
push eax
mov eax, edi
push eax
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x484eb7
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
push 0x527b3c
call ebx
push eax
push 0x527b3c
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 0x484e9b
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484692
jmp 0x484e9b
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484eb7
push 0x527b38
call ebx
push eax
push 0x527b38
mov eax, edi
push eax
call ebx
push eax
mov ecx, edi
push ecx
push 0x10001
push 0x400
call esi
sub eax, 2
jne 0x484eb7
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
push 0x527b3c
call ebx
push eax
push 0x527b3c
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 0x484e9b
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 0x48485c
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov eax, 0x595328
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 0x484803
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4847f0
jmp 0x484807
test esi, esi
jne 0x48480f
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
jne 0x484532
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov eax, edi
push eax
call fcn.004e42fb
add esp, 4
mov dword [0x595348], eax
jmp 0x484e66
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 0x4848ef
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov eax, 0x595338
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 0x4848d3
mov byte [eax], cl
add eax, 1
sub esi, 1
jne 0x4848c0
jmp 0x4848d7
test esi, esi
jne 0x4848df
sub eax, 1
mov edi, 0x8007007a
test edi, edi
mov byte [eax], 0
jne 0x484532
jmp 0x484e66
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 0x484a14
mov eax, dword [esp + 0x14]
mov dword [0x595354], 0
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov esi, 0x527b38
call fcn.0040b090
test eax, eax
jne 0x484e9b
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e66
push 0x527b3c
call ebx
push eax
push 0x527b3c
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 0x484e66
mov esi, 0x550ce4
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 0x4849e8
mov eax, dword [esi]
or dword [0x595354], eax
add esi, 8
cmp esi, 0x550d2c
jl 0x4849b0
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484971
jmp 0x484e66
mov esi, str.debug_option_stand_alone
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484af0
mov dword [0x595358], eax
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov esi, 0x527b38
call fcn.0040b090
test eax, eax
jne 0x484e9b
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e66
mov edi, edi
mov esi, 0x527b3c
lea edi, [esp + 0x9c]
call fcn.0040b090
test eax, eax
je 0x484e66
mov edi, 0x550ce4
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 0x484ac8
mov eax, dword [edi]
or dword [0x595358], eax
add edi, 8
cmp edi, 0x550d2c
jl 0x484a90
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484a70
jmp 0x484e66
mov esi, str.netengine_debug_option_debugger_present
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484bc3
mov dword [0x59535c], eax
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov esi, 0x527b38
call fcn.0040b090
test eax, eax
jne 0x484e9b
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e66
lea ebx, [ebx]
mov esi, 0x527b3c
lea edi, [esp + 0x9c]
call fcn.0040b090
test eax, eax
je 0x484e66
mov dword [esp + 0x18], 0x550ce4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 4]
lea edi, [esp + 0x9c]
call fcn.0040b090
test eax, eax
jne 0x484b94
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
or dword [0x59535c], eax
mov eax, dword [esp + 0x18]
add eax, 8
cmp eax, 0x550d2c
mov dword [esp + 0x18], eax
jl 0x484b71
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484b50
jmp 0x484e66
mov esi, str.netengine_debug_option_stand_alone
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484c93
mov dword [0x595360], eax
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov esi, 0x527b38
call fcn.0040b090
test eax, eax
jne 0x484e9b
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e66
lea ecx, [ecx]
mov esi, 0x527b3c
lea edi, [esp + 0x9c]
call fcn.0040b090
test eax, eax
je 0x484e66
mov dword [esp + 0x18], 0x550ce4
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx - 4]
lea edi, [esp + 0x9c]
call fcn.0040b090
test eax, eax
jne 0x484c64
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
or dword [0x595360], eax
mov eax, dword [esp + 0x18]
add eax, 8
cmp eax, 0x550d2c
mov dword [esp + 0x18], eax
jl 0x484c41
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484c20
jmp 0x484e66
mov esi, str.DumpMsgPool
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484cdc
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov ecx, edi
push ecx
call fcn.004e42fb
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x595364], eax
jmp 0x484e66
mov esi, str.ReportConnectionLog
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484d25
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov edx, edi
push edx
call fcn.004e42fb
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x595368], eax
jmp 0x484e66
mov esi, str.MaxSendQueDepth
call fcn.0040b090
test eax, eax
lea edi, [esp + 0x9c]
jne 0x484d64
mov eax, dword [esp + 0x14]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov eax, edi
push eax
call fcn.004e42fb
add esp, 4
mov dword [0x59536c], eax
jmp 0x484e66
mov esi, str.PromptAtClose
call fcn.0040b090
test eax, eax
jne 0x484dad
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e9b
mov ecx, edi
push ecx
call fcn.004e42fb
sub eax, 1
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [0x595370], eax
jmp 0x484e66
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x84]
call fcn.0040b280
mov dword [esp + 0x5b8], 0
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
je 0x484e84
mov eax, edi
push eax
lea ecx, [esp + 0x30]
call fcn.0040b280
mov byte [esp + 0x5b8], 1
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00467260
mov byte [esp + 0x5b8], 2
push eax
push 0x595378
lea ebx, [esp + 0x28]
call fcn.004670c0
mov byte [esp + 0x5b8], 1
lea eax, [esp + 0x48]
push eax
call fcn.00466a50
mov byte [esp + 0x5b8], 0
lea ecx, [esp + 0x2c]
call fcn.0040b440
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.0040b440
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x484744
jmp 0x484e9b
mov dword [esp + 0x5b8], 0xffffffff
lea ecx, [esp + 0x80]
call fcn.0040b440
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x9c]
call fcn.004a4930
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4845c0
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.004e3834
mov esp, ebp
pop ebp
ret