Function at 0x1000424f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push edi
mov dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0xf0]
call fcn.10004e74
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0xf0]
mov byte [edx + 0xb7], 0
cmp dword [0x10094d3c], 0
je 0x100042ac
cmp dword [0x10094d3c], 4
je 0x100042ac
cmp dword [0x10094d3c], 5
je 0x100042ac
xor al, al
jmp 0x10004492
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0xf0]
mov dword [ecx + 0xa8], eax
mov edx, dword [ebp - 0xf0]
cmp dword [edx + 0xa8], 0xffffffff
jne 0x100042da
xor al, al
jmp 0x10004492
mov dword [ebp - 0x18], 0
cmp dword [0x10094d3c], 0
je 0x100042fa
push 0x10094d40
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
jmp 0x10004307
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10004314
xor al, al
jmp 0x10004492
mov word [ebp - 0x10], 2
cmp dword [0x10094d3c], 0
je 0x10004337
mov cx, word [0x10089098]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jmp 0x10004346
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
push 0x10
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100043ba
mov byte [ebp - 0xe0], 0
mov ecx, 0x31
xor eax, eax
lea edi, [ebp - 0xdf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.connect__d
lea ecx, [ebp - 0xe0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x10004492
cmp dword [0x10094d3c], 5
jne 0x100043e6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.10004499
and eax, 0xff
test eax, eax
jne 0x100043e6
xor al, al
jmp 0x10004492
mov byte [ebp - 0x14], 1
push 1
lea edx, [ebp - 0x14]
push edx
push 8
push 0xffff
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10004459
mov dword [ebp - 0xec], 1
mov dword [ebp - 0xe8], 0xea60
mov dword [ebp - 0xe4], 0x1388
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0xc
lea eax, [ebp - 0xec]
push eax
push 0x98000004
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [ebp - 0xf0]
mov byte [eax + 0xb7], 1
push 1
push 0
push 0
mov ecx, dword [ebp - 0xf0]
push ecx
push 0x10004a62
push 0
push 0
call fcn.1001b377
add esp, 0x1c
mov edx, dword [ebp - 0xf0]
mov dword [edx + 0xa4], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8