Function at 0x4626e0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x38
mov eax, dword [0x496ee4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x4c]
cmp ecx, ebp
je 0x462715
mov edx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
push edi
call eax
mov ebx, eax
jmp 0x4629f1
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x4627a3
xor eax, eax
mov ecx, 2
mov dword [esp + 0x34], eax
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov word [esp + 0x38], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x38], eax
cmp eax, 0xffffffff
jne 0x462770
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebp
je 0x462765
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
jmp 0x462770
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [esp + 0x50]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov word [esp + 0x36], ax
push 0x10
lea eax, [esp + 0x38]
push eax
call fcn.004752e0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x4629f1
cmp eax, 0x17
je 0x4627b0
cmp eax, ebp
jne 0x4629ed
cmp dword [0x4973c8], ebp
jne 0x4627da
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0047bc8a
add esp, 0x38
ret 8
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x4973cc]
mov edx, dword [esi + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
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 eax, dword [esp + 0x50]
push eax
push 0x488618
lea ecx, [esp + 0x3c]
push 9
push ecx
mov dword [esi + 0x20], ebp
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], ebp
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [0x4973c8]
test eax, eax
jne 0x4627c3
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp edi, ebp
je 0x4629ae
cmp dword [esi + 0xc], ebp
jne 0x462880
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x462888
mov ecx, dword [esi + 4]
call fcn.004752e0
cmp eax, 0xffffffff
jne 0x462894
xor ebx, ebx
jmp 0x46299f
cmp dword [esi + 0xc], ebp
jne 0x46295d
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
push eax
call fcn.0044cd10
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.0044ce00
mov ecx, dword [esi + 4]
test eax, eax
jne 0x4628cd
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ebx, ebx
jmp 0x46299f
cmp dword [ecx + 0x38], ebp
je 0x462906
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x403
push edx
call fcn.0044c9a0
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x462906
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
xor ebx, ebx
jmp 0x46299f
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x60], ebp
je 0x462924
mov edx, dword [ecx + 8]
push ebp
push edx
push 0x402
call fcn.0044c9a0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0xc], ebp
jne 0x46295d
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.0044cac0
test eax, eax
jne 0x46295d
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], ebp
mov dword [ecx + 0xc], ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
jmp 0x46299f
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.004752e0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
cmp ebx, ebp
jne 0x4629c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4629c6
cmp dword [esp + 0x18], ebp
jne 0x46299f
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
mov dword [esi + 0xc], ebp
call edx
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x462867
mov edi, dword [esp + 0x10]
push edi
call dword [0x4973cc]
mov ecx, dword [esi + 4]
call fcn.004752e0
cmp eax, 0xffffffff
jne 0x4629f1
xor ebx, ebx
jmp 0x4629f5
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 4]
mov dword [ecx + 0xc], edx
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
mov ebx, 1
cmp eax, ebp
je 0x4629ae
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
jmp 0x4629b5
mov ebx, dword [esp + 0x10]
cmp ebx, ebp
jne 0x462a02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x462a1d
mov eax, dword [esi + 8]
mov dword [esi + 8], 2
cmp eax, 2
je 0x462a1d
push ebp
push eax
push 2
push ebp
mov ecx, esi
call fcn.00461ef0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0047bc8a
add esp, 0x38
ret 8