Function at 0x100369b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101288b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1019f010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x54]
push 0
push 0
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp word [ebx + 0x48], 2
lea ecx, [ebp - 0x20]
setne al
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebx + 0x40]
dec eax
and eax, 0xfffffff4
add eax, 0x2c
lea edx, [ebp - 0x28]
push edx
push eax
push eax
mov eax, dword [esi + 0x1c]
push 0
push eax
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
mov edi, dword [esi + 0x34]
mov ecx, ebx
mov dword [ebp - 0x10], 0
call eax
test eax, eax
je 0x10036b84
lea ecx, [ebp - 0x10]
lea esi, [ebx + 0x164]
push ecx
call fcn.100338f0
test eax, eax
je 0x10036b81
mov edx, dword [ebp - 0x10]
push edi
push edx
push ebx
call fcn.10035800
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea eax, [esi + 8]
cmp ecx, eax
je 0x10036a7f
xor edx, edx
cmp word [ecx], 2
setne dl
dec edx
and edx, 0xfffffff4
add edx, 0x1c
push edx
push ecx
push eax
call fcn.10112b90
add esp, 0xc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
cmp dword [ebx + 0x168], 0
je 0x10036ace
mov eax, dword [ebp - 0x10]
dec eax
xor edx, edx
div dword [ebx + 0x164]
lea ecx, [ebx + 0x164]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edx + eax]
cmp dword [ebp - 0x18], edx
jne 0x10036ace
mov eax, dword [ecx + 4]
mov edx, dword [ebp - 0x1c]
cmp dword [eax + edx*4], 1
jne 0x10036ace
mov eax, dword [ebp - 0x10]
push esi
push eax
call fcn.100339b0
mov ecx, dword [ebp + 8]
push 4
lea edx, [ebp + 8]
push edx
push 0x700b
push 0xffff
push edi
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebx + 0x54]
push 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea edi, [esi + 0x6c]
mov dword [ebp - 0x1c], edi
call fcn.10033c60
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebx]
mov eax, dword [edx + 0xe8]
push esi
mov ecx, ebx
call eax
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
add dword [edi + 4], ecx
jne 0x10036b31
mov dword [edi], 0
cmp eax, 2
je 0x10036b56
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
mov ebx, esi
call fcn.10036e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push ebx
mov eax, esi
call fcn.10035890
mov esi, dword [ebp + 0xc]
push esi
lea edi, [ebx + 0x9c]
call fcn.1002bed0
test eax, eax
jne 0x10036bb6
mov edx, dword [esi + 0x24]
push esi
push eax
mov eax, dword [edx]
push eax
jmp 0x10036bb0
mov esi, dword [ebp + 0xc]
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
lea edi, [ebx + 0x9c]
call fcn.1002bed0
test eax, eax
jne 0x10036bb6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8