Function at 0x46e81a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b24
call fcn.004ade10
mov eax, dword [0x5770a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x1ab4], ecx
and dword [ebp - 0x1ae8], 0
push 0x208
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.004b0090
add esp, 0xc
push 0x1450
push 0
lea eax, [ebp - 0x1a80]
push eax
call fcn.004b0090
add esp, 0xc
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x1aa8]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
push str.servernum
push str.iGame
mov ecx, dword [ebp - 0x1ab4]
add ecx, 0x619b0
call fcn.0047b9a5
mov dword [ebp - 0x1adc], eax
cmp dword [ebp - 0x1adc], 0
jle 0x46eed6
and dword [ebp - 0x1ab8], 0
and dword [ebp - 0x1aec], 0
and dword [ebp - 0x1abc], 0
jmp 0x46e8d6
mov eax, dword [ebp - 0x1abc]
inc eax
mov dword [ebp - 0x1abc], eax
cmp dword [ebp - 0x1adc], 0xa
jge 0x46e8ed
mov eax, dword [ebp - 0x1adc]
mov dword [ebp - 0x1afc], eax
jmp 0x46e8f7
mov dword [ebp - 0x1afc], 0xa
mov eax, dword [ebp - 0x1abc]
cmp eax, dword [ebp - 0x1afc]
jge 0x46ed44
push 0x208
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp - 0x1abc]
push str.iGame_server_id_d_
lea eax, [ebp - 0x428]
push eax
call fcn.00418a75
add esp, 0xc
push 0x53b3dc
push 0x104
imul eax, dword [ebp - 0x1abc], 0x208
lea eax, [ebp + eax - 0x1a80]
push eax
push 0x53b624
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x1ab4]
add ecx, 0x619b0
call fcn.0047baa0
cmp dword [ebp - 0x1ab8], 0xa
jge 0x46e9a5
push 0
push str.port
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x1ab4]
add ecx, 0x619b0
call fcn.0047b9a5
mov ecx, dword [ebp - 0x1ab8]
mov word [ebp + ecx*2 - 0x18], ax
imul eax, dword [ebp - 0x1abc], 0x208
lea eax, [ebp + eax - 0x1a80]
mov dword [ebp - 0x1aac], eax
cmp dword [ebp - 0x1aac], 0
jne 0x46e9d1
and dword [ebp - 0x1b00], 0
jmp 0x46ea98
push dword [ebp - 0x1aac]
call fcn.004cc4f3
pop ecx
inc eax
mov dword [ebp - 0x1ab0], eax
cmp dword [ebp - 0x1ab0], 0x3fffffff
jle 0x46e9fc
and dword [ebp - 0x1ac4], 0
jmp 0x46ea8c
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
call fcn.004ae160
mov dword [ebp - 0x1ad0], esp
mov eax, dword [ebp - 0x1b1c]
mov dword [ebp - 0x1ac4], eax
cmp dword [ebp - 0x1ad0], 0
je 0x46ea2d
cmp dword [ebp - 0x1aac], 0
jne 0x46ea36
and dword [ebp - 0x1ac4], 0
jmp 0x46ea8c
mov eax, dword [ebp - 0x1ad0]
mov byte [eax], 0
push 0
push 0
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
push eax
push dword [ebp - 0x1ad0]
push 0xffffffffffffffff
push dword [ebp - 0x1aac]
push 0
push dword [ebp - 0x1ae8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1b04], eax
cmp dword [ebp - 0x1b04], 0
jne 0x46ea80
and dword [ebp - 0x1ac4], 0
jmp 0x46ea8c
mov eax, dword [ebp - 0x1ad0]
mov dword [ebp - 0x1ac4], eax
mov eax, dword [ebp - 0x1ac4]
mov dword [ebp - 0x1b00], eax
push dword [ebp - 0x1b00]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1b08], eax
cmp dword [ebp - 0x1b08], 0xffffffff
jne 0x46ec1f
imul eax, dword [ebp - 0x1abc], 0x208
lea eax, [ebp + eax - 0x1a80]
mov dword [ebp - 0x1aac], eax
cmp dword [ebp - 0x1aac], 0
jne 0x46eae3
and dword [ebp - 0x1af0], 0
jmp 0x46ebaa
push dword [ebp - 0x1aac]
call fcn.004cc4f3
pop ecx
inc eax
mov dword [ebp - 0x1ab0], eax
cmp dword [ebp - 0x1ab0], 0x3fffffff
jle 0x46eb0e
and dword [ebp - 0x1ac8], 0
jmp 0x46eb9e
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
call fcn.004ae160
mov dword [ebp - 0x1ad4], esp
mov eax, dword [ebp - 0x1b20]
mov dword [ebp - 0x1ac8], eax
cmp dword [ebp - 0x1ad4], 0
je 0x46eb3f
cmp dword [ebp - 0x1aac], 0
jne 0x46eb48
and dword [ebp - 0x1ac8], 0
jmp 0x46eb9e
mov eax, dword [ebp - 0x1ad4]
mov byte [eax], 0
push 0
push 0
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
push eax
push dword [ebp - 0x1ad4]
push 0xffffffffffffffff
push dword [ebp - 0x1aac]
push 0
push dword [ebp - 0x1ae8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1b0c], eax
cmp dword [ebp - 0x1b0c], 0
jne 0x46eb92
and dword [ebp - 0x1ac8], 0
jmp 0x46eb9e
mov eax, dword [ebp - 0x1ad4]
mov dword [ebp - 0x1ac8], eax
mov eax, dword [ebp - 0x1ac8]
mov dword [ebp - 0x1af0], eax
push dword [ebp - 0x1af0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1aec], eax
cmp dword [ebp - 0x1aec], 0
je 0x46ec1a
push dword [ebp - 0x1aec]
mov ecx, dword [ebp - 0x1ab4]
call fcn.0046eeeb
mov dword [ebp - 0x1b10], eax
push 4
lea eax, [ebp - 0x1b10]
push eax
lea eax, [ebp - 0x1b14]
push eax
call fcn.004af590
add esp, 0xc
push dword [ebp - 0x1b14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp - 0x1ab8]
mov dword [ebp + ecx*4 - 0x1aa8], eax
mov eax, dword [ebp - 0x1ab8]
inc eax
mov dword [ebp - 0x1ab8], eax
jmp 0x46ed3f
cmp dword [ebp - 0x1ab8], 0xa
jge 0x46ed3f
imul eax, dword [ebp - 0x1abc], 0x208
lea eax, [ebp + eax - 0x1a80]
mov dword [ebp - 0x1aac], eax
cmp dword [ebp - 0x1aac], 0
jne 0x46ec58
and dword [ebp - 0x1af4], 0
jmp 0x46ed1f
push dword [ebp - 0x1aac]
call fcn.004cc4f3
pop ecx
inc eax
mov dword [ebp - 0x1ab0], eax
cmp dword [ebp - 0x1ab0], 0x3fffffff
jle 0x46ec83
and dword [ebp - 0x1acc], 0
jmp 0x46ed13
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
call fcn.004ae160
mov dword [ebp - 0x1ad8], esp
mov eax, dword [ebp - 0x1b24]
mov dword [ebp - 0x1acc], eax
cmp dword [ebp - 0x1ad8], 0
je 0x46ecb4
cmp dword [ebp - 0x1aac], 0
jne 0x46ecbd
and dword [ebp - 0x1acc], 0
jmp 0x46ed13
mov eax, dword [ebp - 0x1ad8]
mov byte [eax], 0
push 0
push 0
mov eax, dword [ebp - 0x1ab0]
shl eax, 1
push eax
push dword [ebp - 0x1ad8]
push 0xffffffffffffffff
push dword [ebp - 0x1aac]
push 0
push dword [ebp - 0x1ae8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1b18], eax
cmp dword [ebp - 0x1b18], 0
jne 0x46ed07
and dword [ebp - 0x1acc], 0
jmp 0x46ed13
mov eax, dword [ebp - 0x1ad8]
mov dword [ebp - 0x1acc], eax
mov eax, dword [ebp - 0x1acc]
mov dword [ebp - 0x1af4], eax
mov eax, dword [ebp - 0x1ab8]
mov ecx, dword [ebp - 0x1af4]
mov dword [ebp + eax*4 - 0x1aa8], ecx
mov eax, dword [ebp - 0x1ab8]
inc eax
mov dword [ebp - 0x1ab8], eax
jmp 0x46e8c9
and dword [ebp - 0x1ac0], 0
push 0x208
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004b0090
add esp, 0xc
push dword [ebp + 0x14]
push 0x104
lea eax, [ebp - 0x220]
push eax
push str.TCLSClient.dll
mov ecx, dword [ebp - 0x1ab4]
add ecx, 0x58
call fcn.0047e1a4
lea eax, [ebp - 0x220]
push eax
push str._Launcher__ReportIGame__DllPath:_s
mov eax, dword [ebp - 0x1ab4]
add eax, 0x69
push eax
call fcn.0047d5fa
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1ac0], eax
cmp dword [ebp - 0x1ac0], 0
je 0x46eec0
and dword [ebp - 0x1ae4], 0
and dword [ebp - 0x1ae0], 0
push str.iGameInitiate
push dword [ebp - 0x1ac0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1ae4], eax
cmp dword [ebp - 0x1ae4], 0
je 0x46ee0b
push dword [ebp - 0x1adc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1aa8]
push eax
call dword [ebp - 0x1ae4]
add esp, 0xc
jmp 0x46ee29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x53b6a8
mov eax, dword [ebp - 0x1ab4]
add eax, 0x69
push eax
call fcn.0047d5fa
add esp, 0xc
push str.iGameReport
push dword [ebp - 0x1ac0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1ae0], eax
cmp dword [ebp - 0x1ae0], 0
je 0x46ee8d
and dword [ebp - 0x1af8], 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp - 0x1ae0]
add esp, 0x14
mov dword [ebp - 0x1af8], eax
push dword [ebp - 0x1af8]
push str._Launcher__ReportIGame__iGameReport_result:_d
mov eax, dword [ebp - 0x1ab4]
add eax, 0x69
push eax
call fcn.0047d64c
add esp, 0xc
jmp 0x46eeab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Launcher__ReportIGame_
mov eax, dword [ebp - 0x1ab4]
add eax, 0x69
push eax
call fcn.0047d5fa
add esp, 0xc
push dword [ebp - 0x1ac0]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [ebp - 0x1ac0], 0
jmp 0x46eed6
push str._Launcher__CTgpManager::ReportIGame__IGame_report_dll_TclsClient.dll__load_failed
mov eax, dword [ebp - 0x1ab4]
add eax, 0x69
push eax
call fcn.0047d5fa
pop ecx
pop ecx
lea esp, [ebp - 0x1b28]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad99f
leave
ret 0x18