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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e640
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0xc4]
mov dword [esi + 0xe0], ebx
mov ecx, edi
call fcn.00416380
cmp dword [esp + 0x90], ebx
je 0x448af4
cmp dword [esp + 0x80], ebx
je 0x448af4
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
mov byte [eax], bl
jne 0x4486e0
mov ecx, dword [esp + 0x88]
mov dword [esi + 0xe0], 1
push str.Cannot_connect__hostname_is_NULL
mov edx, dword [ecx]
call dword [edx + 0x10]
xor al, al
jmp 0x448b15
push ebp
lea ecx, [esp + 0x34]
call fcn.00416de0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], ebx
call fcn.004161a0
lea ecx, [esp + 0x30]
call fcn.004226f0
test eax, eax
jne 0x448724
mov ecx, dword [esp + 0x88]
mov dword [esi + 0xe0], 1
push str.Cannot_connect__hostname_is_zero_length
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x448ac7
push str.localhost
lea ecx, [esp + 0x34]
call fcn.00418450
test al, al
je 0x44875b
push str.127.0.0.1
mov ecx, edi
call fcn.00417e70
push str.127.0.0.1
lea ecx, [esp + 0x34]
call fcn.00417e70
lea ecx, [esp + 0x30]
call fcn.00422700
mov ebp, eax
mov al, byte [0x48bcec]
mov edi, dword [esp + 0x88]
cmp al, bl
je 0x448774
push edi
call fcn.00447330
add esp, 4
mov edx, dword [esp + 0x7c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov word [esp + 0x24], 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_htons]
push ebp
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], eax
call fcn.00416ed0
mov eax, dword [esi + 0xbc]
mov byte [esp + 0x70], 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4488f7
mov byte [esp + 0x88], bl
mov byte [esp + 0x7c], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x8c]
push ecx
mov ecx, dword [esi + 0xbc]
push edx
mov edx, dword [esi + 0x50]
push edi
push eax
push ecx
push ebx
push edx
push ebp
call fcn.00447d10
add esp, 0x2c
mov byte [esp + 0x78], al
lea eax, [esp + 0x4c]
lea ecx, [esi + 0xc4]
push eax
call fcn.00417f00
cmp byte [esp + 0x78], bl
je 0x4488a3
lea ecx, [esp + 0x4c]
call fcn.004226f0
test eax, eax
je 0x4488a3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x448894
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x24], eax
cmp ebp, ebx
je 0x448907
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x448907
sub eax, ecx
cmp eax, ebp
jb 0x448890
mov dword [esi + 0xe0], 3
mov edx, dword [edi]
push str.Application_timeout_after_DNS
jmp 0x448ab5
sub ebp, eax
jmp 0x448907
mov dword [esi + 0xe0], 2
jmp 0x448aba
mov eax, dword [esp + 0x8c]
push str.Cannot_get_host_by_name.
mov ecx, edi
mov byte [eax], 1
mov edx, dword [edi]
call dword [edx + 0x10]
push ebp
push str.hostname
mov ecx, edi
call fcn.0043f750
cmp byte [esp + 0x88], bl
je 0x4488de
mov dword [esi + 0xe0], 4
jmp 0x448aba
mov dl, byte [esp + 0x7c]
xor eax, eax
cmp dl, bl
setne al
add eax, 2
mov dword [esi + 0xe0], eax
jmp 0x448aba
push ebp
lea ecx, [esi + 0xc4]
call fcn.00417e70
mov ebp, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.00447500
cmp al, bl
je 0x448adc
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x448adc
cmp ebp, ebx
mov dword [esp + 0x10], 1
je 0x448940
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x20]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
mov dword [esp + 0x7c], eax
je 0x448a3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esp + 0x88], eax
je 0x448985
mov edx, dword [edi]
push eax
push str.sockError
mov ecx, edi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x88]
cmp ebp, ebx
je 0x448a58
cmp eax, 0x2733
jne 0x448a3c
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x8c]
mov byte [esp + 0x8c], bl
push eax
mov eax, dword [esp + 0x84]
push ecx
push edi
push ebp
push edx
push eax
mov ecx, esi
call fcn.00448cd0
test al, al
je 0x4489f5
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea ecx, [esi + 0x54]
mov byte [esi + 0x48], 1
call fcn.004582c0
jmp 0x448a7a
cmp byte [esp + 0x8c], bl
je 0x448a25
mov ecx, dword [esi + 0x4c]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esi + 0xe0], 4
jmp 0x448aba
push edi
push 0x2733
mov ecx, esi
mov dword [esi + 0xe0], 6
call fcn.00447980
cmp ebp, ebx
je 0x448a58
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esp + 0x7c], ebx
jne 0x448a9c
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 + 0x4c]
mov byte [esp + 0x70], bl
call fcn.004171c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.004171c0
mov al, 1
jmp 0x448b15
cmp dword [esi + 0xe0], ebx
jne 0x448aae
mov dword [esi + 0xe0], 7
mov edx, dword [edi]
push str.Connect_function_failed
mov ecx, edi
call dword [edx + 0x10]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], bl
call fcn.004171c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.004171c0
xor al, al
jmp 0x448b15
mov dword [esi + 0xe0], 5
mov eax, dword [edi]
push str.Cannot_connect__invalid_socket.
mov ecx, edi
call dword [eax + 0x10]
jmp 0x448aba
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00448190
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x1c