Function at 0x1000be00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [esi + 8]
lea edi, [esi + 4]
mov dword [ebp + 0x18], edi
cmp ecx, 1
je 0x1000be24
mov eax, dword [esi]
jmp 0x1000be3a
mov eax, dword [edi]
xor edx, edx
mov ebx, 0x1ffff7
mov dword [ebp + 0x18], edi
div ebx
imul eax, edx, 0x3e8
add eax, dword [esi]
cmp eax, 0x40
jne 0x1000be95
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000be59
cmp eax, 0xb2ab117a
je 0x1000be68
cmp ecx, 0x257edfd0
jne 0x1000be6c
cmp eax, 0xb2ab117a
jne 0x1000be6c
mov al, 1
jmp 0x1000be80
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2745
mov eax, dword [eax + 0x18]
call eax
movzx ecx, al
mov dword [esi], 0x2745
add ecx, 2
mov dword [edi], 0x10098c30
mov dword [esi + 8], ecx
test cl, 1
je 0x1000beac
cmp ecx, 1
jne 0x1000c02e
cmp dword [esi], 0
jne 0x1000c02e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000bf75
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000bf72
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push dword [ebp - 0x14]
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jbe 0x1000bf60
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000bf1f
cmp eax, 0xb2ab117a
je 0x1000bf2e
cmp ecx, 0x257edfd0
jne 0x1000bf32
cmp eax, 0xb2ab117a
jne 0x1000bf32
mov al, 1
jmp 0x1000bf46
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2726
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [ebp + 0x18]
movzx eax, al
mov dword [esi], 0x2726
add eax, 2
mov dword [edi], 0x10098c30
mov dword [esi + 8], eax
jmp 0x1000bf75
push eax
push dword [ebp - 8]
push ebx
call fcn.100519f0
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x1000bfe0
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000bf9d
cmp eax, 0xb2ab117a
je 0x1000bfac
cmp ecx, 0x257edfd0
jne 0x1000bfb0
cmp eax, 0xb2ab117a
jne 0x1000bfb0
mov al, 1
jmp 0x1000bfc4
mov eax, dword [0x10098c30]
mov ecx, 0x10098c30
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 0x2719
movzx eax, al
mov dword [edi], 0x10098c30
add eax, 2
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000c00c
xorps xmm0, xmm0
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x10098c30
push eax
lea ecx, [ebp - 0x24]
call fcn.100023e0
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret