Function at 0x439b10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
mov eax, dword [0x517ff0]
sub esp, 0x2c
mov ecx, dword [0x517ff4]
push ebp
push esi
push edi
push 0
push 0x439320
push eax
push 0x73
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x439dce
mov ecx, dword [0x5167ec]
or esi, 0xffffffff
cmp ecx, esi
jne 0x439b6a
mov edx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.Invalid_IP_Address
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
mov eax, dword [0x5167e4]
cmp eax, 0x400
jb 0x439db5
cmp eax, 0x1f90
je 0x439db5
cmp eax, 0xffff
ja 0x439db5
xor edx, edx
push 6
mov dword [esp + 0x10], edx
push 1
mov dword [esp + 0x18], edx
push 2
mov dword [esp + 0x20], edx
mov word [esp + 0x18], 2
mov dword [esp + 0x24], edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], ecx
call sub.WSOCK32.dll_socket
cmp eax, esi
mov dword [0x4a0c7c], eax
jne 0x439be7
mov eax, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.socket___failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
mov ecx, dword [0x517ff0]
push 0x10
push 0x401
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
mov edx, dword [0x4a0c7c]
cmp eax, esi
jne 0x439c16
push edx
call sub.WSOCK32.dll_closesocket
mov dword [0x4a0c7c], esi
jmp 0x439ced
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
cmp eax, esi
jne 0x439c55
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x439c55
mov eax, dword [0x4a0c7c]
push eax
call sub.WSOCK32.dll_closesocket
push 0
push 0x4a0d2c
mov dword [0x4a0c7c], esi
push str.connect___failed
jmp 0x439dc1
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call esi
test eax, eax
je 0x439c67
mov eax, dword [esp + 0x20]
cmp eax, 0x111
je 0x439d0e
cmp eax, 0x401
je 0x439ca0
lea eax, [esp + 0x1c]
push eax
call edi
lea ecx, [esp + 0x1c]
push ecx
call ebp
jmp 0x439c67
mov eax, dword [esp + 0x28]
mov edx, eax
shr edx, 0x10
jne 0x439d60
cmp ax, 0x10
jne 0x439c67
mov eax, dword [0x517ff0]
mov ecx, dword [0x4a0c7c]
push 0x20
push 0x401
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x439da5
mov edx, dword [0x4a0c7c]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [0x4a0c7c], 0xffffffff
mov eax, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.WSAAsyncSelect___failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
cmp word [esp + 0x24], 0x9c4b
jne 0x439c67
mov ecx, dword [0x4a0c7c]
push 2
push ecx
call sub.WSOCK32.dll_shutdown
mov edx, dword [0x4a0c7c]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [0x517ff0]
push 0
push str.ACCEPTING_ERROR
push str.connectiong_canceled
push eax
mov dword [0x4a0c7c], 0xffffffff
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
mov eax, dword [0x4a0c7c]
push 2
push eax
call sub.WSOCK32.dll_shutdown
mov ecx, dword [0x4a0c7c]
push ecx
call sub.WSOCK32.dll_closesocket
mov edx, dword [0x517ff0]
push 0
push 0x4a0d2c
push str.socket_error
push edx
mov dword [0x4a0c7c], 0xffffffff
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret
pop edi
pop esi
mov byte [0x5167f3], 2
mov al, 1
pop ebp
add esp, 0x2c
ret
push 0
push 0x4a0d2c
push str.Invalid_Port_number
mov ecx, dword [0x517ff0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x2c
ret