Function at 0x464e70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x2b8], eax
mov dword [eax], esi
push edi
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2b0], esi
push eax
mov ebx, ecx
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a4], esi
call fcn.00462450
test eax, eax
jne 0x464f1d
push str.DoGetInterfaceBySocket_GetLocalIPList_Fail_
call fcn.0045f340
push eax
call fcn.0042d870
mov eax, dword [ebp - 0x2ac]
add esp, 8
cmp eax, esi
je 0x464ee9
push eax
call fcn.004fe49e
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, ebx
call fcn.004630c0
push 0x98a
mov esi, eax
push 0x480a
push esi
push str.DoGetInterfaceBySocket_GetBetterIPFromIPList__u__Port:_d__d.
call fcn.0045f340
push eax
call fcn.0042d870
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x14
call edi
mov dword [ebp - 0x2b4], eax
xor eax, eax
mov dword [ebp - method.CQfTcpSocket.virtual_0], vtable.CQfTcpSocket.0
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1a0], 0xffffffff
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
call edi
push eax
push esi
mov ecx, ebx
call fcn.00462e20
lea edx, [ebp - 0x29c]
push edx
push 5
push 2
push 0x480a
push esi
lea ecx, [ebp - 0x1a4]
call fcn.00460f30
test eax, eax
jne 0x465082
mov eax, dword [ebp - 0x1a0]
or edi, 0xffffffff
cmp eax, edi
je 0x464fdc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], edi
push 0x480a
push esi
push str.DoGetInterfaceBySocket_Connect__d__d__Fail_try_next_port_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0x10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x29c]
push eax
push 5
push 2
push 0x98a
push esi
lea ecx, [ebp - 0x1a4]
call fcn.00460f30
test eax, eax
jne 0x465082
push 0x480a
push esi
push str.DoGetInterfaceBySocket_Connect__d__d__Fail_
call fcn.0045f340
push eax
call fcn.0042d870
mov eax, dword [ebp - 0x1a0]
add esp, 0x10
mov dword [ebp - method.CQfTcpSocket.virtual_0], vtable.CQfTcpSocket.0
cmp eax, edi
je 0x46505a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], edi
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x46506d
push eax
call fcn.004fe49e
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x464efc
push 0xff
lea ecx, [ebp - 0x183]
push 0
push ecx
mov byte [ebp - 0x184], 0
call fcn.00500080
add esp, 0xc
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x29c], 0
call fcn.00471dc0
push str.platform
lea ecx, [ebp - 0x1d4]
call fcn.00462870
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
mov edx, dword [0x56c260]
add eax, 0x10
mov dword [ebp - 0x290], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
add eax, 0x10
mov dword [ebp - 0x294], eax
call fcn.0045f340
mov ecx, dword [eax + 0x1064]
push ecx
lea edx, [ebp - 0x290]
push str._sgamever.ini
push edx
call fcn.00428a30
add esp, 0xc
push 0x556338
push 0x53d38c
lea ecx, [ebp - 0x290]
call fcn.00423850
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov word [ebp - 0x84], ax
call fcn.00500080
mov edx, dword [ebp - 0x290]
add esp, 0xc
push edx
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x53cbd0
push 0x53e398
push str.Game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465174
sub eax, edx
sar eax, 1
je 0x465259
push eax
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x294]
call fcn.00403ee0
mov eax, dword [ebp - 0x294]
push 3
lea edx, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x28c], edx
call fcn.0041f850
mov ecx, dword [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x298]
call fcn.0042abe0
mov eax, dword [ebp - 0x28c]
lea edx, [ebp - 0x288]
cmp eax, edx
je 0x4651e7
push eax
call fcn.004ff19b
add esp, 4
mov edi, dword [ebp - 0x298]
cmp dword [edi - 4], 1
jle 0x465208
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x298]
call fcn.0041f7b0
mov edi, dword [ebp - 0x298]
push edi
lea ecx, [ebp - 0x1d4]
call fcn.004628d0
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00505494
add esp, 8
test eax, eax
js 0x46524f
cmp eax, dword [edi - 8]
jg 0x46524f
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x465269
push 0x80070057
call fcn.00404190
push 0x556aa3
lea ecx, [ebp - 0x1d4]
call fcn.004628d0
lea ecx, [ebp - 0x1bc]
call fcn.00471c40
or dword [ebp - 0x1a8], 1
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1b0], 0xc001
call fcn.0047d400
or dword [ebp - 0x1a8], 2
mov edi, eax
mov eax, dword [ebp - 0x1b4]
cmp eax, 0x56c47c
jne 0x4652d6
push 0x1c
call fcn.00500120
add esp, 4
test eax, eax
je 0x4652ce
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x4652d0
xor eax, eax
mov dword [ebp - 0x1b4], eax
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0040e810
cmp dword [ebp - 0x1f4], 0x10
jb 0x4652fa
mov edx, dword [ebp - 0x208]
push edx
call fcn.004fe49e
add esp, 4
lea ecx, [ebp - 0x1bc]
call fcn.00471d30
lea edi, [eax + 4]
push 0xfc
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x184], edi
call fcn.0047c9c0
push edi
lea ecx, [ebp - 0x184]
push ecx
lea ecx, [ebp - 0x1a4]
call fcn.00460750
cmp eax, edi
je 0x46540e
mov eax, dword [ebp - 0x1a0]
or esi, 0xffffffff
cmp eax, esi
je 0x46535a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], esi
push str.DoGetInterfaceBySocket_Send_Fail_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
lea ecx, [ebp - 0x1bc]
call fcn.00475410
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
mov edx, esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4653ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1d4]
call fcn.00475470
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - method.CQfTcpSocket.virtual_0], vtable.CQfTcpSocket.0
cmp eax, esi
je 0x4653e6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], esi
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x4653f9
push eax
call fcn.004fe49e
add esp, 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jmp 0x464efc
push 0xf
lea ecx, [ebp - 0x1a4]
call fcn.00461050
test eax, eax
jne 0x465471
mov eax, dword [ebp - 0x1a0]
or esi, 0xffffffff
cmp eax, esi
je 0x465439
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], esi
push str.DoGetInterfaceBySocket_ChkIsRecv_Fail_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
lea ecx, [ebp - 0x1bc]
call fcn.00475410
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x46538d
lea ecx, [ebp - 0x298]
push ecx
lea edx, [ebp - 0x29c]
push edx
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x298], 0
call fcn.00461120
test eax, eax
jne 0x46552d
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x4654af
push eax
call fcn.005001ec
add esp, 4
mov eax, dword [ebp - 0x1a0]
cmp eax, 0xffffffff
je 0x4654cb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x1a0], 0xffffffff
push str.DoGetInterfaceBySocket_recvdataByInt_Fail_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
lea ecx, [ebp - 0x1bc]
call fcn.00475410
lea ecx, [ebp - 0x294]
call fcn.00404160
lea ecx, [ebp - 0x290]
call fcn.00404160
lea ecx, [ebp - 0x1d4]
call fcn.00475470
lea ecx, [ebp - 0x1a4]
call fcn.00460e10
lea ecx, [ebp - 0x2ac]
call fcn.0045ea20
lea ecx, [ebp + 8]
call fcn.00404160
jmp 0x464f08
lea ecx, [ebp - 0x1ec]
call fcn.00471c40
mov eax, dword [ebp - 0x298]
mov edi, dword [ebp - 0x29c]
add eax, 0xfffffffc
push eax
lea ecx, [edi + 4]
push ecx
lea ecx, [ebp - 0x1ec]
call fcn.0047d190
test al, al
jne 0x465596
test edi, edi
je 0x465568
push edi
call fcn.005001ec
add esp, 4
lea ecx, [ebp - 0x1a4]
call fcn.00460640
push str.DoGetInterfaceBySocket_recvheader_ParseFromArray_fail_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
lea ecx, [ebp - 0x1ec]
call fcn.00475410
jmp 0x4654de
test edi, edi
je 0x4655a3
push edi
call fcn.005001ec
add esp, 4
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp + 8]
push edx
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
call fcn.00403b50
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea eax, [ebp - 0x1ec]
push eax
mov ecx, ebx
call fcn.00463530
test eax, eax
je 0x465602
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2b4]
mov ecx, ebx
push eax
push esi
call fcn.00462e20
push str.DoCreateJsonFile_Finish_
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 8
jmp 0x465608
mov edi, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x1a4]
call fcn.00460640
push edi
push str.DoGetInterfaceBySocket_Succ__d__
call fcn.0045f340
push eax
call fcn.0042d870
add esp, 0xc
lea ecx, [ebp - 0x1ec]
call fcn.00475410
lea ecx, [ebp - 0x1bc]
call fcn.00475410
lea ecx, [ebp - 0x294]
call fcn.00404160
lea ecx, [ebp - 0x290]
call fcn.00404160
lea ecx, [ebp - 0x1d4]
call fcn.00475470
lea ecx, [ebp - 0x1a4]
call fcn.00460e10
lea ecx, [ebp - 0x2ac]
call fcn.0045ea20
lea ecx, [ebp + 8]
call fcn.00404160
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 8