Function at 0x401000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ax, word [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [0x41e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x14], 2
movzx eax, word [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
sub esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
add eax, 8
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 8
call fcn.00403e10
cmp dword [ebp - 0x10], 0xffffffff
sete al
and al, 1
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], 0xb109abfc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
sub eax, 0x9714501a
je 0x4011cd
jmp 0x40108c
mov eax, dword [ebp - 0x2c]
sub eax, 0x97f07560
je 0x4011c1
jmp 0x40109f
mov eax, dword [ebp - 0x2c]
sub eax, 0xb109abfc
je 0x40114f
jmp 0x4010b2
mov eax, dword [ebp - 0x2c]
sub eax, 0xb7b5ce9a
je 0x401241
jmp 0x4010c5
mov eax, dword [ebp - 0x2c]
sub eax, 0xbfe63df8
je 0x401281
jmp 0x4010d8
mov eax, dword [ebp - 0x2c]
sub eax, 0xc48a6f2b
je 0x401263
jmp 0x4010eb
mov eax, dword [ebp - 0x2c]
sub eax, 0xe75f7b3d
je 0x401209
jmp 0x4010fe
mov eax, dword [ebp - 0x2c]
sub eax, 0xf5c6ab03
je 0x40116a
jmp 0x401111
mov eax, dword [ebp - 0x2c]
sub eax, 0x273fb999
je 0x4011ae
jmp 0x401124
mov eax, dword [ebp - 0x2c]
sub eax, 0x371d73b6
je 0x401195
jmp 0x401137
mov eax, dword [ebp - 0x2c]
sub eax, 0x3bd55d34
je 0x40126f
jmp 0x40114a
jmp 0x401299
mov dl, byte [ebp - 0x15]
mov eax, 0x9714501a
mov ecx, 0xf5c6ab03
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x401299
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
mov dword [ebp - 0x20], eax
mov eax, 0x273fb999
mov ecx, 0x371d73b6
cmp dword [ebp - 0x20], 0
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x401299
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0x97f07560
jmp 0x401299
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x28], 0xbfe63df8
jmp 0x401299
mov dword [ebp - 0x28], 0x9714501a
jmp 0x401299
mov dword [esp], 2
mov dword [esp + 4], 1
mov dword [esp + 8], 6
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, 0x3bd55d34
mov ecx, 0xe75f7b3d
cmp dword [ebp - 0x24], 0xffffffff
cmovne eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x401299
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
mov edx, eax
mov eax, 0xc48a6f2b
mov ecx, 0xb7b5ce9a
cmp edx, 0xffffffff
cmove eax, ecx
mov dword [ebp - 0x28], eax
jmp 0x401299
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x28], 0xbfe63df8
jmp 0x401299
mov dword [ebp - 0x28], 0x3bd55d34
jmp 0x401299
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], 0xbfe63df8
jmp 0x401299
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403296
mov eax, dword [ebp - 0x30]
add esp, 0x3c
pop ebp
ret
jmp 0x401076