Function at 0x1002add0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
mov edi, ecx
push 0
push 0xfffffffffffffff1
push dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x1002b036
cmp word [edi + 0x54], 2
mov ecx, 0x2c
mov esi, dword [ebp + 0xc]
mov eax, 0x20
cmovne eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push eax
mov eax, dword [edi + 0x4c]
push 0
push dword [esi + 0x20]
call eax
mov eax, dword [edi]
mov ecx, edi
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ebx
call dword [eax + 0x2c]
test eax, eax
je 0x1002b011
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [edi + 0x16c]
call fcn.10028680
test eax, eax
je 0x1002b011
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x2a8]
call fcn.10028370
mov ebx, dword [ebp - 4]
test eax, eax
je 0x1002aead
mov esi, dword [ebx + 0x34]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [edi + 0x2ac]
sub eax, esi
cmp eax, dword [edi + 0x24]
jb 0x1002afd9
test ecx, ecx
je 0x1002b036
mov eax, dword [ebp - 8]
cmp dword [ecx + eax*4], 1
jne 0x1002b036
mov dword [ecx + eax*4], 0
test ebx, ebx
jne 0x1002aec4
lea edx, [edi + 0x88]
lea ecx, [edi + 0x78]
call fcn.100253c0
mov ebx, eax
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
mov ecx, ebx
mov eax, dword [ebp - 0xc]
push esi
push eax
mov dword [ebp - 0x10], eax
call fcn.100255c0
lea eax, [ebx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x18]
lea edx, [ebx + 8]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
cmp ecx, edx
je 0x1002af1b
cmp word [ecx], 2
mov eax, 0x10
mov dword [ebp - 0x18], 0x1c
cmovne eax, dword [ebp - 0x18]
push eax
push ecx
push edx
call fcn.10136fe0
add esp, 0xc
mov dword [ebx + 0x48], 1
cmp dword [edi + 0x170], 0
je 0x1002b036
mov eax, dword [ebp - 0x10]
xor edx, edx
dec eax
mov ecx, dword [edi + 0x1b0]
div dword [edi + 0x16c]
movzx ecx, byte [ecx + edx]
cmp eax, ecx
jne 0x1002b036
mov eax, dword [edi + 0x170]
cmp dword [eax + edx*4], 1
jne 0x1002b036
sub esp, 8
lea ecx, [edi + 0x16c]
push ebx
push dword [ebp - 0x10]
call fcn.10028bd0
test eax, eax
je 0x1002b036
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push ebx
push dword [edi + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + pe_nt_image_headers32]
mov esi, eax
lea eax, [ebx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
cmp esi, 2
je 0x1002afee
push dword [ebp + 0xc]
push ebx
call fcn.1002b050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
je 0x1002b036
mov eax, dword [ebp - 8]
cmp dword [ecx + eax*4], 1
jne 0x1002b036
mov dword [ecx + eax*4], ebx
jmp 0x1002aeb1
push 0
push 0
push 0
push ebx
call fcn.10029d50
push dword [ebp + 0xc]
lea ecx, [edi + 0x88]
call fcn.100287e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push ebx
call dword [sym.imp.WS2_32.dll_shutdown]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
lea ecx, [edi + 0x88]
call fcn.100287e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1001f800
int3