Function at 0x442e20
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [0x5b706c]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov esi, dword [edi]
mov dword [eax], 0xffffffff
mov eax, dword [edx + 4]
mov ebx, dword [edi]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x94]
cmp eax, 2
mov dword [esp + 0x3c], eax
mov eax, 0x11
mov dword [esp + 0xc], esi
je 0x442e7e
mov eax, dword [edx + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x44], eax
cmp eax, 0x80
jbe 0x442e9d
mov dword [esp + 0x44], 0x80
mov eax, 0x80
push eax
push dword [edx + 0x18]
lea eax, [esp + 0x50]
push eax
call fcn.00524840
mov eax, dword [ebx + 0x1f0]
add esp, 0xc
test eax, eax
je 0x442ecc
lea ecx, [esp + 0x38]
push ecx
push 0
push dword [ebx + 0x1f4]
call eax
add esp, 0xc
jmp 0x442ede
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44330b
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x170]
lea ecx, [esp + 0x4c]
call fcn.00442620
add esp, 4
test eax, eax
jne 0x442f54
call fcn.005281f2
mov esi, dword [eax]
call fcn.005281f2
mov ecx, dword [esp + 0x18]
mov edx, esi
mov edi, eax
call fcn.00453870
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [esp + 0x18]
call fcn.004415c0
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edx, ebx
call fcn.00443500
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x38]
cmp eax, 2
je 0x442f62
cmp eax, 0x17
jne 0x442f96
cmp dword [esp + 0x3c], 1
jne 0x442f96
cmp dword [esi + 0x5a0], 0
mov dword [esp + 0x18], 1
je 0x442f9e
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x442f9e
mov dword [esp + 0x18], 0
mov eax, dword [0x5bf1f0]
mov dword [esp + 0x20], 0x4020
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 4
test eax, eax
jne 0x443063
push 0x9c
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.00525340
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 0xc8], 0x9c
mov dword [esp + 0xcc], 6
mov dword [esp + 0xd0], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0xe8], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x443057
mov dword [0x5bf1f0], 2
jmp 0x4430a9
mov dword [0x5bf1f0], 1
jmp 0x443068
cmp eax, 2
je 0x4430a9
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x443091
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x20]
jg 0x4430a9
push 4
lea eax, [esp + 0x24]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esp + 0x18], 0
mov esi, dword [esp + 0xc]
je 0x443146
cmp dword [esi + 0x6e4], 0
je 0x443146
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x443146
mov eax, dword [esi + 0x6e8]
and eax, 0x7fffffff
mov dword [esp + 0x28], 1
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x6ec]
and eax, 0x7fffffff
imul eax, eax, 0x3e8
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x40]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x443146
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x44316b
push 0
push ebx
push dword [esi + 0x1ec]
call eax
add esp, 0xc
cmp eax, 2
jne 0x4431bb
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x38]
cmp eax, 2
je 0x443179
cmp eax, 0x17
jne 0x4431e2
push ecx
push dword [esp + 0x3c]
mov edx, ebx
mov ecx, edi
call fcn.00442030
mov esi, eax
add esp, 8
test esi, esi
je 0x4431e4
mov edx, ebx
mov ecx, edi
call fcn.00443500
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x44316b
mov edx, ebx
mov ecx, edi
call fcn.00443500
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 0x28]
push eax
call fcn.004494c0
add esp, 4
cmp dword [edi + 0x338], 1
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x328], xmm0
jle 0x44323a
push dword [edi + 0x344]
mov ecx, dword [esp + 0x10]
mov edx, 3
push dword [edi + 0x340]
call fcn.00441170
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x443305
cmp dword [edi + 0x94], 1
jne 0x443305
cmp dword [edi + 0x30c], 0
jne 0x443291
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x443291
test esi, esi
jne 0x4432ee
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0xb
je 0x4432e6
cmp esi, 0x2732
jle 0x4432ae
cmp esi, 0x2734
jle 0x4432e6
mov edx, esi
mov ecx, edi
call fcn.00453870
mov eax, dword [esp + 0xc]
mov edx, ebx
mov ecx, edi
mov dword [eax + 0x495c], esi
call fcn.00443500
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov dword [eax], ebx
mov ecx, dword [esp + 0x19c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret