Function at 0x1000bc20
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 0x1000bc44
mov eax, dword [esi]
jmp 0x1000bc5a
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 0x1000bcb5
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000bc79
cmp eax, 0xb2ab117a
je 0x1000bc88
cmp ecx, 0x257edfd0
jne 0x1000bc8c
cmp eax, 0xb2ab117a
jne 0x1000bc8c
mov al, 1
jmp 0x1000bca0
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 0x1000bccc
cmp ecx, 1
jne 0x1000be4e
cmp dword [esi], 0
jne 0x1000be4e
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000bd95
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1000bd92
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 0x1000bd80
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000bd3f
cmp eax, 0xb2ab117a
je 0x1000bd4e
cmp ecx, 0x257edfd0
jne 0x1000bd52
cmp eax, 0xb2ab117a
jne 0x1000bd52
mov al, 1
jmp 0x1000bd66
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 0x1000bd95
push eax
push dword [ebp - 8]
push ebx
call fcn.10051890
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 0x1000be00
mov ecx, dword [0x10098c38]
mov eax, dword [0x10098c3c]
cmp ecx, 0x257edfd1
jne 0x1000bdbd
cmp eax, 0xb2ab117a
je 0x1000bdcc
cmp ecx, 0x257edfd0
jne 0x1000bdd0
cmp eax, 0xb2ab117a
jne 0x1000bdd0
mov al, 1
jmp 0x1000bde4
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 0x1000be2c
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.10002300
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