Function at 0x42ce20
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x38
mov eax, dword [0x4595b8]
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
cmp ecx, ebp
push edi
mov edi, dword [esp + 0x4c]
je 0x42ce55
mov edx, dword [esp + 0x50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
push edi
call eax
mov ebx, eax
jmp 0x42d139
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x42cee6
call dword [0x459598]
xor eax, eax
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], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
jne 0x42ceb3
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebp
je 0x42cea8
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x38], eax
jmp 0x42ceb3
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
push 0x10
lea edx, [esp + 0x38]
push edx
mov word [esp + 0x3e], ax
call fcn.004179b0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
jmp 0x42d139
cmp eax, 0x17
je 0x42cef3
cmp eax, ebp
jne 0x42d135
cmp dword [0x4596a0], ebp
jne 0x42cf1d
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.004451f4
add esp, 0x38
ret 8
call dword [0x459598]
mov eax, dword [esi + 0x1c]
push eax
call dword [0x4596a4]
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
xor eax, eax
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 0x44b640
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
lea eax, [esp + 0x3c]
push 9
push eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], ebp
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call dword [0x4596a0]
test eax, eax
jne 0x42cf06
mov edi, dword [esp + 0x10]
cmp edi, ebp
mov ebx, dword [esp + 0x10]
je 0x42d0f6
cmp dword [esi + 0xc], ebp
jne 0x42cfc9
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x42cfd1
mov ecx, dword [esi + 4]
call fcn.004179b0
cmp eax, 0xffffffff
jne 0x42cfdd
xor ebx, ebx
jmp 0x42d0e7
cmp dword [esi + 0xc], ebp
jne 0x42d0a5
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
push eax
call fcn.00417d60
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.00417e50
test eax, eax
mov ecx, dword [esi + 4]
jne 0x42d016
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
xor ebx, ebx
jmp 0x42d0e7
cmp dword [ecx + 0x38], ebp
je 0x42d04e
mov eax, dword [ecx + 8]
push 0x3f
add eax, 0x403
push eax
call fcn.004179c0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x42d04e
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
xor ebx, ebx
jmp 0x42d0e7
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x50], ebp
je 0x42d06c
mov eax, dword [ecx + 8]
push ebp
push eax
push 0x402
call fcn.004179c0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [esi + 0xc], ebp
jne 0x42d0a5
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.00417ae0
test eax, eax
jne 0x42d0a5
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 0x42d0e7
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.004179b0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
cmp ebx, ebp
jne 0x42d10e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x42d10e
cmp dword [esp + 0x18], ebp
jne 0x42d0e7
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 0x42cfb0
mov edi, dword [esp + 0x10]
push edi
call dword [0x4596a4]
mov ecx, dword [esi + 4]
call fcn.004179b0
cmp eax, 0xffffffff
jne 0x42d139
xor ebx, ebx
jmp 0x42d13d
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]
cmp eax, ebp
mov ebx, 1
je 0x42d0f6
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
jmp 0x42d0fd
mov ebx, dword [esp + 0x10]
cmp ebx, ebp
jne 0x42d14a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42d165
mov eax, dword [esi + 8]
cmp eax, 2
mov dword [esi + 8], 2
je 0x42d165
push ebp
push eax
push 2
push ebp
mov ecx, esi
call fcn.0042c670
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004451f4
add esp, 0x38
ret 8