Function at 0x10008340
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x2260
call fcn.1001f5e0
mov eax, dword [0x100280f0]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
xor ebx, ebx
push esi
push edi
mov al, 0x17
push str.tdir2.lol.qq.com
mov dword [esp + 0x48], ebx
mov byte [esp + 0x52], al
mov byte [esp + 0x56], al
lea eax, [esp + 0x164]
push 0x10024b08
push eax
mov esi, ecx
mov byte [esp + 0x50], 0xa
mov byte [esp + 0x51], 5
mov byte [esp + 0x52], 0x64
mov byte [esp + 0x53], 0x1a
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], 0x20
mov byte [esp + 0x5b], 1
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], bl
mov byte [esp + 0x5f], 0x71
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], bl
mov byte [esp + 0x63], 1
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], bl
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], bl
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], bl
call fcn.1000e35b
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push str.5223
lea eax, [esp + 0x16c]
mov edi, 1
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x100085ef
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100085ef
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push 2
push ebx
push ebx
push 0x401
lea ecx, [esp + 0x70]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea ecx, [esp + 0x60]
push ecx
push str.server_ip_is:__s_n
call fcn.1000e556
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [esp + 0x60]
mov dword [esp + 0x34], ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x38], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1467
mov dword [esp + 0x3c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push edi
push 2
mov word [esp + 0x42], ax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [esp + 0x38]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10008503
push str.connect_to_server_failed.
call fcn.1000e556
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10008603
lea eax, [esp + 0x44]
call fcn.1000b170
test al, al
jne 0x10008529
push str.send_to_server_failed.
call fcn.1000e556
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10008603
push 0x2000
lea edx, [esp + 0x264]
push 0
push edx
call fcn.1000f430
add esp, 0xc
push ebx
lea eax, [esp + 0x264]
call fcn.1000b1c0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10008576
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_failed_with_error__d_n
call fcn.1000e556
add esp, 8
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x10008603
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x264]
push eax
call fcn.100082f0
mov dword [esp + 0x264], eax
add eax, 0x1a
cmp edi, eax
jne 0x100085e0
cmp edi, 0x1a
jle 0x100085e0
call fcn.1000abb0
mov ecx, dword [esp + 0x264]
add ecx, 0x1a
push esi
lea eax, [esp + 0x264]
call fcn.10008620
mov ecx, dword [esp + 0x264]
add ecx, 0x1a
cmp ecx, eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2258]
xor ecx, esp
call fcn.1000dec6
add esp, 0x2260
ret
push 0x10024ba0
call fcn.1000e556
add esp, 4
jmp 0x10008603
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getaddrinfo_failed_with_error_code:_d_n
call fcn.1000e556
add esp, 8
mov ecx, dword [esp + 0x2264]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.1000dec6
add esp, 0x2260
ret