Function at 0x415b40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4398cb
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x8c]
mov ebp, ecx
push 0x40
lea eax, [ebp + 0x60]
push edi
push eax
call fcn.0042d3e0
mov ecx, 0x414a90
add esp, 0xc
test ecx, ecx
je 0x415b87
mov dword [0x44c638], 0x414a90
push 0x414ab0
call fcn.0041e6f0
add esp, 4
call fcn.00419d50
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push 0
push str.SERVER_MODE
push str.ATTRIBUTES
call esi
push edi
push 0
push str.GET_SERVERINFO_FROM_FILE
push str.ATTRIBUTES
mov dword [ebp + 0x10], eax
call esi
push edi
push 0
push str.IO_HANDLER_MASK
push str.ATTRIBUTES
mov dword [ebp + 0x38], eax
call esi
push edi
push 0
push str.RECONNECT_DELAY_TIME
push str.ATTRIBUTES
mov dword [ebp + 0x14], eax
call esi
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
test ecx, ecx
je 0x415bf4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x415bf9
mov ebx, 1
test eax, eax
je 0x415c04
cmp eax, 0x3e8
jge 0x415c07
or ebx, 2
test ebx, ebx
je 0x415c72
push str.Please_Check_xxxServer.ini_n
call fcn.0042d9d6
add esp, 4
test bl, 3
je 0x415c2a
push str._t_ATTRIBUTES__Is_exact_tab_name___n
call fcn.0042d9d6
add esp, 4
test bl, 1
je 0x415c3c
push str._t_ATTRIBUTES__Check_value_:_SERVER_MODE__or__IO_HANDLER_MASK_n
call fcn.0042d9d6
add esp, 4
test bl, 2
je 0x415c4e
push str._t_ATTRIBUTES__RECONNECT_DELAY_TIME_value__0__or__less_than_1000__n
call fcn.0042d9d6
add esp, 4
push str.pause
call fcn.0042d934
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 0x1c
mov dword [ebp + 0x24], 0x1388
mov dword [ebp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1388
mov dword [ebp + 0x20], eax
mov byte [ebp + 0x28], 1
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x8c], eax
movzx dx, byte [esp + 0x8f]
movzx cx, ah
push edx
movzx dx, al
push ecx
push edx
call fcn.00419750
push eax
mov eax, dword [ebp]
push 3
push 5
push 3
push 0
push ebx
mov ecx, ebp
call dword [eax + 4]
push eax
call fcn.00418ea0
lea ebx, [ebp + 0x100]
add esp, 0x28
lea eax, [ebx + 0x30]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
lea eax, [ebx + 0x40]
push eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
call fcn.0041da20
push ebx
call fcn.0041dbb0
push str.IOCP_Initialize......
call fcn.0042d9d6
push 8
call fcn.004211f9
add esp, 0xc
mov dword [esp + 0x8c], eax
test eax, eax
mov dword [esp + 0x84], 0
je 0x415d3b
mov ecx, eax
call fcn.00426fb0
jmp 0x415d3d
xor eax, eax
mov dword [ebp + 0x34], eax
test byte [ebp + 0x14], 1
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x8c], 0
je 0x415dca
lea esi, [esp + 0x14]
mov ebx, str.SERVER_IOHANDLER
mov dword [esp + 0x14], 1
call fcn.004149b0
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x44], eax
cmp dword [esp + 0x2c], 0x2000
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jae 0x415db5
push 0xa3
push str.D:Build_China1204ServerCommonServerFrame.cpp
push str.desc_nHandler_.dwMaxPacketSize___8192
call dword [0x44c638]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x8c], 1
test byte [ebp + 0x14], 2
je 0x415e2e
mov eax, dword [esp + 0x8c]
imul eax, eax, 0x34
lea esi, [esp + eax + 0x14]
mov ebx, str.CLIENT_IOHANDLER
mov dword [esp + 0x90], eax
mov dword [esi], 2
call fcn.004149b0
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [esp + 0x10]
mov dword [esp + eax + 0x3c], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + eax + 0x40], edx
mov dword [esp + eax + 0x44], ecx
inc dword [esp + 0x8c]
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x34]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00426f50
test eax, eax
jne 0x415e6b
push str.FAILED__n
call fcn.0042d9d6
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 0x1c
push str.SUCCESS__n
call fcn.0042d9d6
mov eax, dword [ebp + 0x38]
add esp, 4
test eax, eax
je 0x415f35
test byte [ebp + 0x14], 1
je 0x415edc
push edi
push 0x10
lea eax, [ebp + 0x3c]
push eax
push 0
push 0x442ac8
push str.SERVER_IOHANDLER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0
push str.PORT
push str.SERVER_IOHANDLER
call esi
push edi
push 0
push str.AUTO_LISTEN
push str.SERVER_IOHANDLER
mov word [ebp + 0x4c], ax
call esi
test eax, eax
je 0x415edc
xor ecx, ecx
mov cx, word [ebp + 0x4c]
lea eax, [ebp + 0x3c]
push ecx
push eax
push 1
mov ecx, ebp
call fcn.00414880
test byte [ebp + 0x14], 2
je 0x415f35
push edi
push 0x10
lea eax, [ebp + 0x4e]
push eax
push 0
push 0x442ac8
push str.CLIENT_IOHANDLER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0
push str.PORT
push str.CLIENT_IOHANDLER
call esi
push edi
push 0
push str.AUTO_LISTEN
push str.CLIENT_IOHANDLER
mov word [ebp + 0x5e], ax
call esi
test eax, eax
je 0x415f35
xor edx, edx
mov dx, word [ebp + 0x5e]
lea eax, [ebp + 0x4e]
mov ecx, ebp
push edx
push eax
push 2
call fcn.00414880
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
test eax, eax
je 0x415e54
push edi
push 0
push str.CONEECTION_NUM
push str.SERVER_IOHANDLER
call esi
push eax
mov ecx, ebp
call fcn.00415a10
mov ecx, ebx
call fcn.00414750
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x1c