Function at 0x439ea0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x30
cmp ecx, 0x10
jae 0x439ed2
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x439ec5
call fcn.005414b2
mov dword [eax], 0x16
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax]
psrldq xmm1, 4
movd edi, xmm1
movups xmmword [ebp - 0x30], xmm0
bswap edi
cmp edi, 0x7f000001
jne 0x439f24
cmp dword [esi + 0x14], 6
jne 0x439f24
test byte [esi + 0x58], 0x80
je 0x439f24
cmp dword [0x5eda74], 3
jne 0x439f24
push 0
push dword [esi]
mov dword [ebp - 8], 1
call fcn.00438570
mov ecx, dword [ebp + 0x10]
add esp, 8
jmp 0x439f2b
mov dword [ebp - 8], 0
cmp edi, 0x7f000001
jne 0x439f41
cmp word [esi + 0x78], 0
mov dword [ebp + 0xc], 1
je 0x439f48
mov dword [ebp + 0xc], 0
push ebx
push ecx
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
push dword [esi + 0x60]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.0053b370
mov edi, eax
add esp, 4
test edi, edi
je 0x43a07c
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
add eax, 0x28f0
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
jne 0x439f8b
call fcn.005414b2
cmp dword [eax], 0x2740
jne 0x43a078
cmp dword [ebp + 0xc], 0
je 0x43a078
cmp ebx, 2
jge 0x43a078
push dword [esi + 0x14]
mov edi, dword [esi + 0x58]
push dword [esi + 0x10]
mov eax, dword [esi + 0x60]
and edi, 0x80
push dword [esi + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x60], eax
test eax, eax
js 0x43a06e
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor eax, eax
test edi, edi
setne al
push eax
push dword [esi]
call fcn.00438570
add esp, 8
mov ebx, 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], bx
call fcn.0053d090
cdq
mov ecx, 0xfa00
idiv ecx
push 0x10
add edx, 0x3e8
mov dword [ebp - 0x1c], 0x100007f
mov ah, dl
mov al, dh
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call fcn.00439870
add esp, 0xc
test eax, eax
jne 0x439ff5
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp + 0x10]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x60]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.0053b370
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x10]
test edi, edi
jne 0x439f80
jmp 0x43a07c
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x43a089
inc dword [0x601848]
mov dword [esi + 8], 1
cmp dword [ebp - 8], 0
je 0x43a153
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a0aa
call fcn.005414b2
mov eax, dword [eax]
mov esi, dword [esi]
push 0x601860
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], 1
call fcn.00429170
mov eax, dword [0x60188c]
push 0x601860
mov ebx, dword [eax + esi*4]
call fcn.00429180
add esp, 8
test byte [ebx + 0x58], 1
je 0x43a12f
push 0x601860
call fcn.00429170
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [eax + esi*4]
call fcn.00429180
add esp, 8
lea eax, [ebp + 0x10]
push eax
push 0x8004667e
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
je 0x43a12f
push str.failed_ioctl_FIOBIO_:__m
push 0x360003
call fcn.004241a0
add esp, 8
jmp 0x43a136
or dword [ebx + 0x58], 0x80
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a14e
call fcn.005414b2
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret