Function at 0x10001b10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100241d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
test edi, edi
jne 0x10001bdf
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0x80
push 0xffff
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
lea eax, [esi + 0xb6]
xchg dword [eax], ecx
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esi + 0xa8], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret 8
cmp edi, 6
jne 0x10001c25
mov eax, dword [ecx]
cmp eax, dword [esi + 0xb0]
jne 0x10001c25
movzx eax, word [ecx + 4]
cmp ax, word [esi + 0xb4]
jne 0x10001c25
mov ecx, dword [esi + 0x80]
test ecx, ecx
jne 0x10001c12
xor eax, eax
push eax
push ecx
mov ecx, esi
call fcn.10001e70
jmp 0x10001bc1
mov eax, dword [esi + 0x84]
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.10001e70
jmp 0x10001bc1
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10001c3a
xor eax, eax
jmp 0x10001c3f
mov eax, dword [esi + 0xc]
sub eax, ecx
add eax, edi
lea ecx, [esi + 4]
push eax
call fcn.100028a0
cmp eax, 0xffffffff
je 0x10001c61
push edi
push dword [ebp - 0x28]
push dword [esi + 0xc]
call fcn.100143a0
add esp, 0xc
add dword [esi + 0xc], edi
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [eax + eax]
mov edx, dword [esi + 8]
test edx, edx
je 0x10001bc1
mov ecx, dword [esi + 0xc]
mov eax, ecx
sub eax, edx
cmp eax, 0xe
jbe 0x10001bc1
mov edi, edx
lea ebx, [ebp - 0x1c]
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov ax, word [edi + 4]
mov word [ebp - 0x18], ax
mov eax, dword [esi + 0xb0]
cmp eax, dword [ebx]
jne 0x10001e4e
movzx eax, word [esi + 0xb4]
mov edx, ebx
cmp ax, word [edx + 4]
mov edx, edi
jne 0x10001e4e
mov eax, dword [edi + 6]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10001bc1
sub ecx, edx
cmp ecx, eax
jb 0x10001bc1
push 6
mov eax, ebx
mov dword [ebp - 0x24], 0
push eax
lea ecx, [esi + 4]
call fcn.100027f0
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 4]
call fcn.100027f0
push 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [esi + 4]
call fcn.100027f0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff2
push eax
mov dword [ebp - 0x2c], eax
call fcn.100126f6
mov edi, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x20], eax
push edi
call fcn.100126f6
add esp, 4
lea ecx, [esi + 4]
mov ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call fcn.100027f0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push dword [ebp - 0x20]
push eax
push ebx
call fcn.1000c0d0
test eax, eax
jne 0x10001e39
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x2c]
push 0x400
mov dword [esi + 0x34], eax
call fcn.10002980
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x30]
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x10001d93
xor eax, eax
jmp 0x10001d98
mov eax, dword [esi + 0x34]
sub eax, ecx
add eax, dword [ebp - 0x24]
lea ecx, [esi + 0x2c]
push eax
call fcn.100028a0
cmp eax, 0xffffffff
je 0x10001dc0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [esi + 0x34]
call fcn.100143a0
mov eax, dword [ebp - 0x24]
add esp, 0xc
add dword [esi + 0x34], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x10001dd2
xor edx, edx
jmp 0x10001dd7
mov edx, dword [esi + 0x34]
sub edx, eax
mov ecx, dword [esi + 0xb8]
push edx
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call fcn.1001273d
add esp, 4
push dword [ebp - 0x28]
call fcn.1001273d
add esp, 4
jmp 0x10001c70
push 0x10030238
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.bad_buffer
push eax
call fcn.10014a7a
push 0x10030238
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.bad_buffer
push eax
call fcn.10014a7a
int3