Function at 0x4419e2
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x28], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [0x464444]
mov dword [esp], eax
call sub.WS2_32.dll_socket
sub esp, 0xc
mov esi, eax
mov ebp, eax
cmp eax, 0xffffffff
jne 0x441a33
mov dword [0x47ca3c], 1
jmp 0x441cb4
test ebx, ebx
jne 0x441a6e
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8004667e
mov dword [esp], esi
call sub.WS2_32.dll_ioctlsocket
sub esp, 0xc
test eax, eax
je 0x441b2b
mov dword [0x47ca3c], 0x11
mov ebp, 0xffffffff
jmp 0x441cb4
mov al, byte [ebx]
cmp al, 0x4d
je 0x441a7c
cmp al, 0x42
jne 0x441b2b
cmp dword [0x464444], 0x17
jne 0x441a8c
mov edx, 0x10
jmp 0x441a91
mov edx, 4
cmp al, 0x4d
jne 0x441af3
mov dword [esp + 0x10], edx
mov eax, dword [0x47ca34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
mov eax, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], 4
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
cmp byte [ebx], 0x42
jne 0x441b2b
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], 4
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov dword [esp], esi
call sub.WS2_32.dll_setsockopt
sub esp, 0x14
cmp edi, 2
jne 0x441b40
mov edx, dword [esp + 0x80]
cmp byte [edx], 0
je 0x441cb4
lea edx, [esp + 0x40]
mov ecx, 0x20
mov al, 0
mov edi, edx
rep stosb byte es:[edi], al
cmp dword [0x464444], 0x17
jne 0x441b5f
mov eax, 0x17
jmp 0x441b64
mov eax, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x46abb1
mov dword [esp + 4], 0xa
lea ebx, [esp + 0x32]
mov dword [esp], ebx
call fcn.0045717c
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sub.WS2_32.dll_getaddrinfo
sub esp, 0x10
test eax, eax
je 0x441bd5
mov dword [0x47ca3c], 2
mov ebp, 0xffffffff
jmp 0x441cb4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x441c56
mov edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jns 0x441c52
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x441c46
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x90]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 4], eax
cdq
mov dword [esp + 8], edx
mov dword [esp], esi
call fcn.004417c3
test eax, eax
jg 0x441c62
sar eax, 0x1f
and eax, 0xfffffff2
add eax, 0x12
mov dword [0x47ca3c], eax
jmp 0x441c95
mov dword [0x47ca3c], 4
jmp 0x441c95
test eax, eax
je 0x441c62
mov dword [0x47ca3c], 4
jmp 0x441c95
mov dword [esp], esi
call fcn.004400a4
test eax, eax
je 0x441c7a
mov dword [0x47ca3c], 0x11
jmp 0x441c95
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.WS2_32.dll_freeaddrinfo
sub esp, 4
mov dword [0x47ca3c], 0
jmp 0x441cb4
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.WS2_32.dll_freeaddrinfo
sub esp, 4
mov dword [esp], esi
call sub.WS2_32.dll_closesocket
sub esp, 4
mov ebp, 0xffffffff
mov eax, ebp
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret