Function at 0x447460
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447871
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44c], 0xffffffff
je 0x4474a9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4b1], 7
je 0x4474a9
mov edx, 0x447888
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x44785b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x470], 0
jne 0x4474c7
mov edx, 0x4478b0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x44785b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 0
jne 0x4474e5
mov edx, 0x4478d4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x44785b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x464], 0
jne 0x447503
mov edx, 0x447900
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
jmp 0x44785b
xor eax, eax
push ebp
push 0x44762e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x465], 0
jne 0x447561
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
call fcn.00446c90
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x460], ebx
cmp ebx, 0x11
jne 0x44754a
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], 2
jmp 0x447557
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x465], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x471], 0
jne 0x4475b9
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00446550
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
call fcn.00446adc
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x474], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x474]
push eax
call sub.wsock32.dll_htons
mov edx, dword [ebp - 4]
mov word [edx + 0x50e], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x471], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x466], 0
jne 0x4475f7
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00446550
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
call fcn.00446adc
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x47c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x466], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x454], 0
jne 0x447624
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
call fcn.00446888
mov edx, dword [ebp - 4]
mov dword [edx + 0x510], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x454], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44766b
mov eax, dword [ebp - 4]
call fcn.00447ea4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x480]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
push eax
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x44c], ebx
inc ebx
jne 0x4476b6
mov edx, 0x44793c
mov eax, dword [ebp - 4]
call fcn.004483d8
jmp 0x44785b
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00445c1c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x480], 2
jne 0x447721
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x510], 0xffffffff
jne 0x4477af
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x4477af
mov edx, 0x447958
mov eax, dword [ebp - 4]
call fcn.004483d8
jmp 0x44785b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x47c], 0
je 0x447735
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
call fcn.004473a0
mov dword [ebp - 8], 0xffffffff
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x447776
mov edx, 0x44797c
mov eax, dword [ebp - 4]
call fcn.004483d8
jmp 0x44785b
mov dword [ebp - 8], 0xffffffff
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x4477af
mov edx, 0x4479a0
mov eax, dword [ebp - 4]
call fcn.004483d8
jmp 0x44785b
push 0x3b
push 0x401
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
push eax
call sub.wsock32.dll_WSAAsyncSelect
test eax, eax
je 0x4477df
mov edx, 0x4479c4
mov eax, dword [ebp - 4]
call fcn.004483d8
jmp 0x44785b
mov eax, dword [ebp - 4]
cmp dword [eax + 0x480], 2
jne 0x447801
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.00445c1c
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
jmp 0x44785b
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x50c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x44782b
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00445c1c
jmp 0x44785b
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x447843
mov dl, 3
mov eax, dword [ebp - 4]
call fcn.00445c1c
jmp 0x44785b
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov edx, 0x4479dc
mov eax, dword [ebp - 4]
call fcn.004483d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447878
lea eax, [ebp - 0xc]
call fcn.00403a94
ret