Function at 0x1001d750
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a38cc
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x100d0320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x261], 1
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
call fcn.100046f0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.10020b10
mov dword [ebp - 4], 2
push 1
push str.SetupSocket_Enter
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
je 0x1001d84d
push 1
push str.SetupSocket_WSAStartup_0x0202__wsadata__error__setup_is_false
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov byte [ebp - 0x262], 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x290], edx
mov dword [ebp - 4], 4
mov dword [ebp - 4], 5
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x262]
jmp 0x1001db91
movzx eax, word [ebp - 0x260]
cmp eax, 0x202
je 0x1001d8c0
push 1
push str.SetupSocket_wsadata.wVersion___0x0202
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
call sub.WS2_32.dll_WSACleanup
mov byte [ebp - 0x263], 0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x294], ecx
mov dword [ebp - 4], 7
mov dword [ebp - 4], 8
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x263]
jmp 0x1001db91
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [0x100d1dac], eax
cmp dword [0x100d1dac], 0xffffffff
jne 0x1001d939
push 1
push str.SetupSocket_communicationSocket__INVALID_SOCKET
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov byte [ebp - 0x264], 0
mov dword [ebp - 4], 9
lea ecx, [ebp - 0xa8]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xa8]
mov dword [ebp - 0x298], edx
mov dword [ebp - 4], 0xa
mov dword [ebp - 4], 0xb
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x264]
jmp 0x1001db91
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x280], eax
mov ecx, dword [ebp - 0x280]
call fcn.100046f0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xc0]
call fcn.10020b10
mov byte [ebp - 4], 0xe
push 0x80
lea ecx, [ebp - 0x90]
push ecx
call sub.WS2_32.dll_gethostname
lea edx, [ebp - 0x90]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x26c], eax
push str.localhost
mov ecx, 0x100d2184
call fcn.100215d0
test eax, eax
jne 0x1001d9ad
push str.localhost
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x26c], eax
mov eax, 2
mov word [ebp - 0xd0], ax
mov ecx, 0x100d23d4
call fcn.10021060
push eax
call fcn.1005d9fc
add esp, 4
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0xce], ax
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WS2_32.dll_inet_ntoa
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x270]
push edx
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x270]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10020ea0
lea ecx, [ebp - 0xc0]
call fcn.10021060
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xcc], eax
push str.SetupSocket_ip_address_is:
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
push edx
push str.SetupSocket_ip_address_is:
lea ecx, [ebp - 0xa8]
call fcn.10020ea0
lea ecx, [ebp - 0xc0]
call fcn.10021060
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
push eax
call fcn.1005bd80
add esp, 4
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x274]
push edx
lea ecx, [ebp - 0xa8]
call fcn.10020d40
push 1
lea ecx, [ebp - 0xa8]
call fcn.10021060
push eax
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
push 0x10
lea eax, [ebp - 0xd0]
push eax
mov ecx, dword [0x100d1dac]
push ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x1001daf2
mov byte [ebp - 0x261], 0
push 1
push str.SetupSocket_connect_error__setup_is_false
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
jmp 0x1001db06
push 1
push str.SetupSocket_success__setup_is_true
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
push 1
push str.SetupSocket_Leave
push str.CaresScreenPop
call fcn.1001e610
add esp, 0xc
mov dl, byte [ebp - 0x261]
mov byte [ebp - 0x265], dl
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc0]
call fcn.10020a30
mov byte [ebp - 4], 2
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 2
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0xa8]
call fcn.10020a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 4], 0x13
mov dword [ebp - 4], 0x14
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x265]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d440
mov esp, ebp
pop ebp
ret