Function at 0x452710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592030
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x612678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.00452600
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.0053de50
mov ecx, dword [ebp + 0xc]
mov edx, 0x17
mov dword [ebp - 0x1c], eax
mov eax, 2
cmp word [ecx], ax
mov ecx, dword [esi + 0x40]
cmovne eax, edx
mov dword [ebp - 0x14], ecx
cmp dword [esi], 0xffffffff
mov dword [ebp - 0x18], eax
je 0x45278e
lea edi, [edx - 0x16]
call fcn.00424b60
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
jmp 0x452855
lea ecx, [ebp - 0x20]
push ecx
push 6
push 1
push eax
call fcn.00450f20
mov edi, eax
add esp, 0x10
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x4527b3
mov byte [ebp - 4], 0
jmp 0x4527e2
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x28]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.0044fb80
xor edx, edx
mov ecx, fcn.0052a8e0
cmp dword [eax], edx
cmove ecx, edx
test ecx, ecx
je 0x4527ef
lea ecx, [ebp + 8]
mov byte [ebp - 4], dl
call fcn.00446990
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x45292a
jmp 0x452822
push dword [ebp + 0x10]
lea ecx, [esi + 8]
mov dword [ebp + 8], 0xffffffff
push 0
mov dword [esi], edi
mov byte [esi + 4], 0x10
call fcn.004449c0
xor edi, edi
call fcn.0053de50
lea ecx, [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
call fcn.00446990
mov eax, dword [ebp - 0x18]
xorps xmm1, xmm1
movups xmmword [ebp - 0x44], xmm1
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 0
movups xmm0, xmmword [ebp - 0x44]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], 0
movups xmmword [esi + 0x24], xmm0
movq qword [esi + 0x34], xmm1
mov dword [esi + 0x3c], 0
test edi, edi
jne 0x45292a
cmp byte [ebp + 0x10], 0
je 0x4528d2
mov edi, dword [esi]
mov dword [ebp + 0x10], 1
cmp edi, 0xffffffff
jne 0x452883
mov edi, 0x2719
call fcn.0053de50
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
jmp 0x4528ce
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0053de50
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
test edi, edi
jne 0x4528c8
call fcn.0053de50
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
jmp 0x4528cb
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
test edi, edi
jne 0x452938
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov edx, 0x1c
mov eax, 0x10
cmp word [ecx], 2
cmovne eax, edx
push eax
push ecx
push dword [esi]
call fcn.00449e60
add esp, 0x10
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x20], 0
jne 0x452946
push eax
push closesocket
push dword [esi]
call fcn.00453f10
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x452951
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push str.open
lea eax, [ebp - 0x20]
push eax
call fcn.00424a20
push str.set_option
lea eax, [ebp - 0x20]
push eax
call fcn.00424a20
push str.bind
push eax
call fcn.00424a20
push str.listen
lea eax, [ebp - 0x20]
push eax
call fcn.00424a20
int3