Function at 0x4360b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebx, ecx
push edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4360f5
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 0
push ecx
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], 0
push ecx
xorps xmm0, xmm0
push eax
movq qword [esp + 0x38], xmm0
call fcn.004217c0
add esp, 0x10
mov dword [esi], 0xffffffff
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
test ebp, ebp
je 0x436126
xor eax, eax
lock xadd dword [ebp], eax
cmp eax, 1
jne 0x436126
mov ecx, dword [ebx + 4]
push 0
push 0x3e3
push edi
call fcn.00425a50
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push dword [esp + 0x4c]
xorps xmm0, xmm0
push dword [esp + 0x4c]
movq qword [esp + 0x34], xmm0
push dword [esp + 0x4c]
call fcn.00429670
mov ecx, eax
add esp, 0x10
mov eax, dword [esi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], eax
cmp eax, 0xffffffff
je 0x4362bc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x4362b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x537028
push eax
lea ecx, [esp + 0x24]
call fcn.00402f30
mov ecx, dword [0x537030]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [0x537034]
movq qword [esp + 0x10], xmm0
cmp ecx, 0x257edfd1
jne 0x4361b4
cmp eax, 0xb2ab117a
je 0x4361c3
cmp ecx, 0x257edfd0
jne 0x4361c7
cmp eax, 0xb2ab117a
jne 0x4361c7
mov al, 1
jmp 0x4361db
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x1c], 0x2733
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0x537028
push eax
call fcn.00414ed0
add esp, 8
test al, al
jne 0x43627c
mov ecx, dword [0x537030]
mov eax, dword [0x537034]
cmp ecx, 0x257edfd1
jne 0x436225
cmp eax, 0xb2ab117a
je 0x436234
cmp ecx, 0x257edfd0
jne 0x436238
cmp eax, 0xb2ab117a
jne 0x436238
mov al, 1
jmp 0x43624c
mov eax, dword [0x537028]
mov ecx, 0x537028
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x1c], 0x4d5
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0x537028
push eax
call fcn.00414ed0
add esp, 8
test al, al
je 0x4362b8
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push 0x8004667e
push dword [esp + 0x5c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push dword [esp + 0x54]
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
setne al
movzx eax, al
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00424970
add esp, 8
mov ecx, dword [esp + 0x3c]
mov dword [esi], ecx
cmp ecx, 0xffffffff
jne 0x4362dd
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x28]
push 0
push eax
push edi
call fcn.00435e60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x24
push edi
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0
push eax
mov eax, dword [esp + 0x58]
push eax
push eax
push 0
push dword [esp + 0x60]
push ecx
push dword [esp + 0x54]
call sub.MSWSOCK.dll_AcceptEx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x436329
cmp eax, 0x3e5
je 0x436329
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.00425a50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x24
test ebp, ebp
je 0x436344
xor eax, eax
lock xadd dword [ebp], eax
cmp eax, 1
jne 0x436344
push edi
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
mov ecx, dword [ebx + 4]
push edi
call fcn.00425b80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x24