Function at 0x519d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571f79
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x676300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov esi, ecx
push 0x67f608
mov dword [esi + 0x2d0], 0
call fcn.004f05e1
push 0x67f608
push str._sconfig.ini
push 0x67f208
call fcn.00535bfb
push 0x67f608
call fcn.004eea01
mov eax, 0x67f608
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x519db0
sub eax, ecx
push eax
push 0x67f608
lea ecx, [esi + 0x1a0]
call fcn.0040a3f0
push 0xc
push str._version.ini
lea ecx, [esi + 0x1a0]
call fcn.0040b110
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00534b40
add esp, 0xc
push str.System
push 0x67f208
lea ecx, [ebp - 0x888]
call fcn.004f1577
lea ecx, [ebp - 0x410]
push ecx
push str._cfg
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.004f1cb4
add esp, 0xc
test al, al
jne 0x519e54
push 0x65c915
push 0x400
lea edx, [ebp - 0x410]
push edx
push str.ConfigFile
lea ecx, [ebp - 0x888]
call fcn.004f10ba
cmp byte [ebp - 0x410], 0
je 0x519e82
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x410]
mov byte [eax + 0x67f208], cl
inc eax
test cl, cl
jne 0x519e60
push 0x67f208
lea ecx, [ebp - 0x888]
call fcn.004f1529
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00534b40
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
test ebx, ebx
je 0x519eae
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov ecx, ebx
call edx
jmp 0x519ec8
push 0x65740c
call sub.KERNEL32.dll_GetCommandLineA
push eax
call fcn.004f1cb4
add esp, 0xc
mov byte [ebp - 0x310], 0
cmp byte [ebp - 0x410], 0
jne 0x519edb
mov dword [ebp - 0x410], 0x737973
push 0
lea ecx, [ebp - 0x410]
lea edi, [esi + 0x120]
push ecx
mov ecx, edi
call fcn.00522930
xor eax, eax
mov dword [0x67f1e0], eax
mov dword [0x67f1e4], eax
mov dword [0x67f1f0], eax
mov dword [0x67f1e8], eax
mov dword [0x67f1ec], eax
mov dword [0x67f1f4], eax
mov dword [0x67f1f8], eax
mov dword [0x67f1fc], eax
mov dword [0x67f200], eax
mov dword [0x67f204], eax
mov dword [0x67f1e4], 0x67f208
mov dword [0x67f1e0], 0x67f608
mov dword [0x67f1f0], edi
test ebx, ebx
je 0x519f5e
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
test eax, eax
je 0x519f5e
mov edx, dword [ebx]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
call eax
mov dword [0x67f1f0], eax
mov ecx, dword [0x67f1f0]
lea eax, [esi + 0x1bc]
push 0x400
mov dword [0x67f1f4], eax
lea edx, [ebp - 0x410]
lea eax, [esi + 0x218]
push 0
push edx
mov dword [0x67fa0c], ecx
mov dword [0x67f1ec], 0x67fa10
mov dword [0x67f1f8], eax
mov dword [0x67f1fc], esi
call fcn.00534b40
add esp, 0xc
push 1
push 0
push 0
lea ecx, [esi + 0x238]
call fcn.004f16ce
test eax, eax
jne 0x519fec
push str.Failed_to_create_evt
push str.RzxServer
push 0x67fa0c
call fcn.004ebec7
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
call fcn.004f12d2
or eax, 0xffffffff
jmp 0x51a41a
mov ecx, 0x67fa10
call fcn.0051d180
test eax, eax
jne 0x519fd2
test ebx, ebx
jne 0x51a0dc
mov dword [ebp - 0x81c], 0x6573dc
mov dword [ebp - 0x818], str.SvrCore.dll
mov dword [ebp - 0x814], str.libsvrcore.so
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x81c]
push eax
push 0x67f608
lea ecx, [ebp - 0x410]
push 0x57a838
push ecx
call fcn.00535bfb
lea edx, [ebp - 0x410]
push edx
call fcn.004ee6fe
add esp, 0x14
test eax, eax
jne 0x51a05e
inc edi
cmp edi, 3
jl 0x51a022
jmp 0x51a0e2
lea eax, [ebp - 0x410]
push eax
call fcn.004ee6fe
add esp, 4
test eax, eax
je 0x51a0ae
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51a0ae
push str.CreateObject
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51a0a7
push 0
call eax
add esp, 4
test eax, eax
je 0x51a0a7
mov dword [esi + 0x240], eax
jmp 0x51a0ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esi + 0x240]
test ecx, ecx
jne 0x51a0d1
push str.Failed_to_load_core_dll
push str.RzxServer
push 0x67fa0c
call fcn.004ebec7
add esp, 0xc
jmp 0x51a0e2
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
call eax
mov ebx, eax
jmp 0x51a0e5
mov dword [esi + 0x240], ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0x240]
test ecx, ecx
je 0x51a1fc
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
je 0x51a115
mov ecx, dword [esi + 0x240]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
mov dword [0x67f1f0], eax
mov dword [0x67fa0c], eax
mov ecx, dword [esi + 0x240]
lea eax, [esi + 0x2c0]
mov dword [ebp - 0x820], 0x2a84fd78
mov dword [ebp - 0x81c], 0x420ddfd1
mov dword [ebp - 0x818], 0xbce035a7
mov dword [ebp - 0x814], 0xf40177e3
mov dword [eax], 0
test ecx, ecx
je 0x51a162
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
push eax
lea eax, [ebp - 0x820]
push eax
call edx
mov ecx, dword [esi + 0x240]
lea eax, [esi + 0x2c4]
mov dword [ebp - 0x840], 0x6798f6ca
mov dword [ebp - 0x83c], 0x4ccd008f
mov dword [ebp - 0x838], 0x30a90c98
mov dword [ebp - 0x834], 0xcfbf6739
mov dword [eax], 0
test ecx, ecx
je 0x51a1af
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
push eax
lea eax, [ebp - 0x840]
push eax
call edx
mov ecx, dword [esi + 0x240]
lea eax, [esi + 0x2cc]
mov dword [ebp - 0x830], 0xf4ce99bf
mov dword [ebp - 0x82c], 0x4d7265bb
mov dword [ebp - 0x828], 0xff370b90
mov dword [ebp - 0x824], 0x54ee4913
mov dword [eax], 0
test ecx, ecx
je 0x51a1fc
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
push eax
lea eax, [ebp - 0x830]
push eax
call edx
mov ecx, esi
call fcn.00517230
lea eax, [ebp - 0x810]
push eax
call fcn.004f0598
lea eax, [ebp - 0x810]
add esp, 4
lea edx, [eax + 1]
jmp 0x51a220
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51a220
sub eax, edx
cmp eax, 0xa
jbe 0x51a28a
lea ecx, [ebp + eax - 0x81a]
push str.Server.exe
push ecx
call fcn.0053791c
add esp, 8
test eax, eax
jne 0x51a28a
push 4
push 0x400
push eax
lea ecx, [esi + 0x218]
call fcn.00522a20
push 4
push 0x800
push 1
lea ecx, [esi + 0x218]
call fcn.00522a20
push 0xa
push str.MaxMem
lea ecx, [ebp - 0x888]
call fcn.004f116f
push eax
push 0xc00
push 5
jmp 0x51a2cc
push 1
push 0x200
push 0
lea ecx, [esi + 0x218]
call fcn.00522a20
push 2
push 0x800
push 1
lea ecx, [esi + 0x218]
call fcn.00522a20
push 3
push str.MaxMem
lea ecx, [ebp - 0x888]
call fcn.004f116f
push eax
push 0xc00
push 3
lea ecx, [esi + 0x218]
call fcn.00522a20
lea ecx, [esi + 0x1bc]
call fcn.00473440
test eax, eax
jne 0x519fd2
test ebx, ebx
jne 0x51a304
mov ecx, esi
call fcn.00510f60
movzx ebx, al
neg ebx
sbb ebx, ebx
and ebx, 0xb
add ebx, 0xa
jmp 0x51a30e
cmp ebx, 0x80000000
jne 0x51a30e
xor ebx, ebx
push ebx
mov ecx, esi
mov dword [esi + 0x2d4], ebx
call fcn.00511030
test eax, eax
jne 0x51a32a
push str.Failed_to_initialize_file_sync_service_
jmp 0x519fc0
cmp dword [esi + 0x280], 0
jne 0x51a374
test byte [esi + 0x2d4], 0x40
je 0x51a374
push 0x44
call fcn.00535efc
add esp, 4
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x51a35d
mov ecx, eax
call fcn.00523ad0
jmp 0x51a35f
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 0x2c8], eax
test eax, eax
je 0x51a374
mov ecx, eax
call fcn.00523c80
mov eax, dword [esi + 0x280]
test eax, eax
je 0x51a385
mov dword [0x67f1e8], eax
jmp 0x51a391
mov edx, dword [esi + 0x2c8]
mov dword [0x67f1e8], edx
mov eax, dword [esi + 0x284]
mov ecx, esi
mov dword [0x67f200], eax
call fcn.00515310
mov ecx, dword [esi + 0x240]
test ecx, ecx
je 0x51a3c2
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x67f1e0
push 0
call eax
test eax, eax
jne 0x519fd2
mov ecx, esi
call fcn.00516910
mov ecx, esi
call fcn.00516c30
mov ecx, esi
call fcn.00516f70
cmp dword [esi + 0x18], 0
jne 0x51a3f4
push str.Failed_to_read_the_server_address_config_value
push str.RzxServer
push 0x67fa0c
call fcn.004ebe5c
add esp, 0xc
mov ecx, 0x67fa10
call fcn.0051ea00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x888]
test eax, eax
jne 0x519fdf
call fcn.004f12d2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00534bba
mov esp, ebp
pop ebp
ret 8