Function at 0x448190
Capabilities:
Check for time delay via gettickcount
Connect socket
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e61b
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [esp + 0xc8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0xc4]
mov dword [esi + 0xe0], edi
mov ecx, ebp
mov byte [eax], 0
call fcn.00416380
mov ebx, dword [esp + 0xcc]
cmp ebx, edi
jne 0x4481fb
mov ecx, dword [esp + 0xd4]
mov dword [esi + 0xe0], 1
push str.Cannot_connect__hostname_is_NULL
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x44863c
push ebx
lea ecx, [esp + 0x38]
call fcn.00416de0
lea ecx, [esp + 0x34]
mov dword [esp + 0xc4], edi
call fcn.004161a0
lea ecx, [esp + 0x34]
call fcn.004226f0
test eax, eax
jne 0x448242
mov ecx, dword [esp + 0xd4]
mov dword [esi + 0xe0], 1
push str.Cannot_connect__hostname_is_zero_length
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x448628
push str.localhost
lea ecx, [esp + 0x38]
call fcn.00418450
test al, al
je 0x448280
push str.127.0.0.1
mov ecx, ebp
call fcn.00417e70
push str.127.0.0.1
lea ecx, [esp + 0x38]
call fcn.00417e70
lea ecx, [esp + 0x34]
call fcn.00422700
mov ebx, eax
mov dword [esp + 0xcc], ebx
mov al, byte [0x48bcec]
mov edi, dword [esp + 0xd4]
test al, al
je 0x448299
push edi
call fcn.00447330
add esp, 4
mov edx, dword [esp + 0xd0]
xor ecx, ecx
mov dword [esp + 0x24], ecx
push edx
mov dword [esp + 0x2c], ecx
mov word [esp + 0x28], 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [esp + 0x2a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], eax
call fcn.00416ed0
mov eax, dword [esp + 0x28]
mov byte [esp + 0xc4], 1
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0
jne 0x44843f
mov eax, dword [esi + 0xbc]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
call fcn.00422120
mov byte [esp + 0xc4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x11]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x12]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esi + 0xbc]
lea edx, [esp + 0x78]
push ecx
mov ecx, dword [esi + 0x50]
push edx
push edi
push 0xc8
push eax
push 0
push ecx
push ebx
call fcn.00447d10
add esp, 0x2c
lea edx, [esp + 0x50]
mov ecx, ebp
mov byte [esp + 0x13], al
push edx
call fcn.00417f00
mov al, byte [esp + 0x13]
test al, al
je 0x4483de
lea ecx, [esp + 0x50]
call fcn.004226f0
test eax, eax
je 0x4483de
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4483d2
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x4483bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x4483bf
sub eax, ecx
cmp eax, ebx
jb 0x4483bf
mov dword [esi + 0xe0], 3
mov eax, dword [edi]
push str.Application_timeout_after_DNS
mov ecx, edi
call dword [eax + 0x10]
jmp 0x448429
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc4], 1
call fcn.004221f0
jmp 0x448447
mov dword [esi + 0xe0], 2
jmp 0x448429
mov ecx, dword [esp + 0xd8]
push str.Cannot_get_host_by_name..
mov byte [ecx], 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
push ebx
push str.hostname
mov ecx, edi
call fcn.0043f750
mov al, byte [esp + 0x12]
test al, al
je 0x448415
mov dword [esi + 0xe0], 4
jmp 0x448429
mov dl, byte [esp + 0x11]
xor eax, eax
test dl, dl
setne al
add eax, 2
mov dword [esi + 0xe0], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc4], 1
call fcn.004221f0
jmp 0x448617
push ebx
mov ecx, ebp
call fcn.00417e70
push edi
mov ecx, esi
call fcn.00447500
test al, al
je 0x448601
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x448601
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x14], 1
test ecx, ecx
je 0x448486
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x24]
push 0x10
push edx
push eax
xor ebp, ebp
xor bl, bl
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov dword [esp + 0x18], eax
je 0x44856a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
mov dword [esp + 0x20], ebp
je 0x44851f
cmp ebp, 0x2726
jne 0x448512
mov ebp, dword [edi]
lea ecx, [esp + 0x50]
call fcn.00422700
push eax
push str.IP_Address
mov ecx, edi
call dword [ebp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
push str.ipAddr
mov ecx, edi
call dword [edx + 0x34]
mov eax, dword [esp + 0xcc]
mov edx, dword [edi]
push eax
push str.Hostname
mov ecx, edi
call dword [edx + 0x28]
mov eax, dword [esi + 0x4c]
mov edx, dword [edi]
push eax
push str.SocketHandle
mov ecx, edi
call dword [edx + 0x34]
mov ebp, dword [esp + 0x20]
mov edx, dword [edi]
push ebp
push str.sockError
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x44856a
cmp ebp, 0x2733
jne 0x44856a
push edi
push eax
mov ecx, esi
call fcn.00448bf0
test al, al
je 0x448568
mov ecx, dword [esi + 0x4c]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esi + 0x54]
mov byte [esi + 0x48], 1
call fcn.004582c0
jmp 0x4485b4
mov bl, 1
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x448590
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x14]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4485dd
lea ecx, [esi + 0x54]
mov byte [esi + 0x48], 1
call fcn.004582c0
lea ecx, [esi + 8]
call fcn.004582d0
lea ecx, [esi + 0x28]
call fcn.004582d0
lea ecx, [esp + 0x50]
mov byte [esp + 0xc4], 0
call fcn.004171c0
lea ecx, [esp + 0x34]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004171c0
mov al, 1
jmp 0x44863e
neg bl
sbb ebx, ebx
push str.Connect_function_failed.
add ebx, 7
mov ecx, edi
mov dword [esi + 0xe0], ebx
mov edx, dword [edi]
call dword [edx + 0x10]
push edi
push ebp
mov ecx, esi
call fcn.00447980
jmp 0x448617
mov dword [esi + 0xe0], 5
mov eax, dword [edi]
push str.Cannot_connect__invalid_socket.
mov ecx, edi
call dword [eax + 0x10]
lea ecx, [esp + 0x50]
mov byte [esp + 0xc4], 0
call fcn.004171c0
lea ecx, [esp + 0x34]
mov dword [esp + 0xc4], 0xffffffff
call fcn.004171c0
xor al, al
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 0x10