Function at 0x439ef0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x30
cmp ecx, 0x10
jae 0x439f22
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x439f15
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 0x439f74
cmp dword [esi + 0x14], 6
jne 0x439f74
test byte [esi + 0x58], 0x80
je 0x439f74
cmp dword [0x5eda74], 3
jne 0x439f74
push 0
push dword [esi]
mov dword [ebp - 8], 1
call fcn.004385d0
mov ecx, dword [ebp + 0x10]
add esp, 8
jmp 0x439f7b
mov dword [ebp - 8], 0
cmp edi, 0x7f000001
jne 0x439f91
cmp word [esi + 0x78], 0
mov dword [ebp + 0xc], 1
je 0x439f98
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 0x43a0cc
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 0x439fdb
call fcn.005414b2
cmp dword [eax], 0x2740
jne 0x43a0c8
cmp dword [ebp + 0xc], 0
je 0x43a0c8
cmp ebx, 2
jge 0x43a0c8
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 0x43a0be
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.004385d0
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.004398c0
add esp, 0xc
test eax, eax
jne 0x43a045
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 0x439fd0
jmp 0x43a0cc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x43a0d9
inc dword [0x601848]
mov dword [esi + 8], 1
cmp dword [ebp - 8], 0
je 0x43a1a3
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a0fa
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.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov ebx, dword [eax + esi*4]
call fcn.004291d0
add esp, 8
test byte [ebx + 0x58], 1
je 0x43a17f
push 0x601860
call fcn.004291c0
mov eax, dword [0x60188c]
push 0x601860
mov esi, dword [eax + esi*4]
call fcn.004291d0
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 0x43a17f
push str.failed_ioctl_FIOBIO_:__m
push 0x360003
call fcn.00424200
add esp, 8
jmp 0x43a186
or dword [ebx + 0x58], 0x80
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x43a19e
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