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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470cf0
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.00413a90
cmp dword [esp + 0x90], ebx
je 0x44824e
cmp dword [esp + 0x80], ebx
je 0x44824e
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
mov byte [eax], bl
jne 0x447e20
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 0x44826f
push ebp
lea ecx, [esp + 0x34]
call fcn.004145b0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], ebx
call fcn.004138b0
lea ecx, [esp + 0x30]
call fcn.00443b10
test eax, eax
jne 0x447e64
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 0x448221
push str.localhost
lea ecx, [esp + 0x34]
call fcn.00415c30
test al, al
je 0x447e9b
push str.127.0.0.1
mov ecx, edi
call fcn.00415650
push str.127.0.0.1
lea ecx, [esp + 0x34]
call fcn.00415650
lea ecx, [esp + 0x30]
call fcn.00443b00
mov ebp, eax
mov al, byte [0x490a38]
mov edi, dword [esp + 0x88]
cmp al, bl
je 0x447eb4
push edi
call fcn.00446980
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.004146b0
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 0x44803c
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.004473c0
add esp, 0x2c
mov byte [esp + 0x78], al
lea eax, [esp + 0x4c]
lea ecx, [esi + 0xc4]
push eax
call fcn.004156e0
cmp byte [esp + 0x78], bl
je 0x447fe8
lea ecx, [esp + 0x4c]
call fcn.00443b10
test eax, eax
je 0x447fe8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x447fd9
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x24], eax
cmp ebp, ebx
je 0x44804c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jbe 0x44804c
sub eax, ecx
cmp eax, ebp
jb 0x447fd5
mov dword [esi + 0xe0], 3
mov edx, dword [edi]
push str.Application_timeout_after_DNS
mov ecx, edi
call dword [edx + 0x10]
jmp 0x448214
sub ebp, eax
jmp 0x44804c
mov dword [esi + 0xe0], 2
jmp 0x448214
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.0043f490
cmp byte [esp + 0x88], bl
je 0x448023
mov dword [esi + 0xe0], 4
jmp 0x448214
mov dl, byte [esp + 0x7c]
xor eax, eax
cmp dl, bl
setne al
add eax, 2
mov dword [esi + 0xe0], eax
jmp 0x448214
push ebp
lea ecx, [esi + 0xc4]
call fcn.00415650
mov ebp, dword [esp + 0x18]
push 1
push edi
mov ecx, esi
call fcn.00446b50
cmp al, bl
je 0x448236
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x448236
cmp ebp, ebx
mov dword [esp + 0x10], 1
je 0x448087
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 0x448196
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [esp + 0x88], eax
je 0x4480cc
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 0x4481b2
cmp eax, 0x2733
jne 0x448196
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.00448430
test al, al
je 0x44813c
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.00457ff0
jmp 0x4481d4
cmp byte [esp + 0x8c], bl
je 0x44816c
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 0x448214
mov eax, dword [esi + 0xbc]
mov dword [esi + 0xe0], 6
mov edx, dword [edi]
push eax
push str.ConnectTimeoutMs
mov ecx, edi
call dword [edx + 0x2c]
push edi
push 0x2733
mov ecx, esi
call fcn.00447030
cmp ebp, ebx
je 0x4481b2
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]
cmp dword [esp + 0x7c], ebx
jne 0x4481f6
lea ecx, [esi + 0x54]
mov byte [esi + 0x48], 1
call fcn.00457ff0
lea ecx, [esi + 8]
call fcn.00458000
lea ecx, [esi + 0x28]
call fcn.00458000
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], bl
call fcn.004149a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.004149a0
mov al, 1
jmp 0x44826f
cmp dword [esi + 0xe0], ebx
jne 0x448208
mov dword [esi + 0xe0], 7
mov eax, dword [edi]
push str.Connect_function_failed
mov ecx, edi
call dword [eax + 0x10]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], bl
call fcn.004149a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.004149a0
xor al, al
jmp 0x44826f
mov dword [esi + 0xe0], 5
mov edx, dword [edi]
push str.Cannot_connect__invalid_socket.
mov ecx, edi
call dword [edx + 0x10]
jmp 0x448214
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004478a0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x1c