Function at 0x10026c80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101603ad
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1024ed04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10026ce7
mov esi, dword [ebp + 0x10]
cmp eax, 0x2736
je 0x10026ccd
cmp eax, 0x3e3
je 0x10026ccd
push eax
push dword [esi + 0x18]
push 2
push dword [ebp + 0xc]
call fcn.10025ee0
cmp dword [esi + 0x18], 3
jne 0x10026ce1
or eax, 0xffffffff
lock xadd dword [esi + 0x28], eax
jne 0x10026f8d
push esi
jmp 0x10026f82
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test edx, edx
jne 0x10026d00
cmp dword [edi + 0x18], 2
je 0x10026d00
push edx
push edx
push 1
jmp 0x10026f79
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], edx
sub eax, 2
je 0x10026ec9
sub eax, 1
je 0x10026e30
sub eax, 1
jne 0x10026f8d
cmp dword [ebx + 0x38], eax
je 0x10026d34
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
jmp 0x10026d37
mov esi, dword [ebp + 0xc]
mov eax, 0xff
mov dword [ebp + 0x10], eax
test esi, esi
je 0x10026dff
cmp dword [esi + 0x30], 0
je 0x10026dff
add esi, 0x54
push esi
mov dword [ebp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], 0
je 0x10026d8c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [edi + 0x1c]
mov eax, dword [ebx]
mov ecx, ebx
push dword [edi + 0x20]
push dword [ebp + 0xc]
call dword [eax + 0x11c]
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10026da9
cmp eax, 1
jne 0x10026dfc
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push edi
mov edx, esi
mov ecx, ebx
call fcn.10028f60
add esp, 8
test eax, eax
je 0x10026df7
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp + 0xc]
call fcn.100209c0
mov dword [ebp - 4], 2
mov dword [esi + 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
mov eax, dword [ebp + 0xc]
push edi
push esi
mov dword [eax], 0
call fcn.10026fb0
mov eax, dword [ebp + 0x10]
jmp 0x10026dff
mov esi, dword [ebp + 0xc]
cmp eax, 0xff
je 0x10026f81
cmp eax, 2
jne 0x10026f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
test eax, eax
cmove eax, ecx
mov ecx, ebx
push eax
push 4
push 2
push esi
jmp 0x10026f7c
mov eax, dword [ebx + 8]
neg edx
sub eax, 0
je 0x10026e9c
sub eax, 1
je 0x10026e6f
sub eax, 1
jne 0x10026f8d
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0x40]
lock xadd dword [eax], edx
push edi
push ecx
mov ecx, ebx
call fcn.10025710
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x44]
lock xadd dword [eax], edx
push edi
push esi
call fcn.10025710
push esi
mov ecx, ebx
call fcn.10027d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x44]
lock xadd dword [eax], edx
push edi
push esi
call fcn.10025710
push esi
mov ecx, ebx
call fcn.10027c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0x18]
push 4
push eax
push 0x7010
push 0xffff
push dword [esi + 0x88]
mov dword [ebp + 0x18], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esi + 0x48], 1
add esi, 0x54
push esi
mov dword [ebp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], 0
jne 0x10026f23
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10026f71
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp + 0xc]
call dword [eax + 0x110]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, 2
je 0x10026f6e
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.10026fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.10025ee0
push edi
lea ecx, [ebx + 0x94]
call fcn.100287e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14