Function at 0x408a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
test esi, esi
jne 0x408a98
push 4
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
push eax
push 0x80
push 0xffff
push dword [ebx + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push esi
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [ebx + 0x38]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebx + 0x38], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x408aa3
xor eax, eax
jmp 0x408aa8
mov eax, dword [ebx + 0xc]
sub eax, ecx
add eax, esi
lea ecx, [ebx + 4]
push eax
call fcn.004082e0
cmp eax, 0xffffffff
je 0x408ad0
push esi
push dword [ebp + 8]
push dword [ebx + 0xc]
call fcn.00552610
add esp, 0xc
add dword [ebx + 0xc], esi
nop word [eax + eax]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x408a8f
mov eax, dword [ebx + 0xc]
sub eax, ecx
cmp eax, 8
jbe 0x408a8f
mov eax, ecx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x408a8f
mov edx, eax
test edx, edx
je 0x408af7
mov eax, dword [ebx + 0xc]
sub eax, edx
cmp eax, ecx
jb 0x408a8f
push 4
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0
push eax
lea ecx, [ebx + 4]
call fcn.00408210
push 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebx + 4]
call fcn.00408210
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov dword [ebp - 4], eax
call fcn.00415a1b
add esp, 4
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
call fcn.00415a1b
mov esi, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
test eax, eax
je 0x408c22
test esi, esi
je 0x408c22
push dword [ebp - 4]
lea ecx, [ebx + 4]
push eax
call fcn.00408210
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
call section..text
add esp, 0x10
test eax, eax
jne 0x408c09
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x408b98
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov edx, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
test edx, edx
jne 0x408bbe
xor eax, eax
jmp 0x408bc3
mov eax, dword [ebx + 0x1c]
sub eax, edx
add eax, ecx
lea ecx, [ebx + 0x14]
push eax
call fcn.004082e0
cmp eax, 0xffffffff
je 0x408bea
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebx + 0x1c]
call fcn.00552610
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x408bf5
xor edx, edx
jmp 0x408bfa
mov edx, dword [ebx + 0x1c]
sub edx, eax
mov ecx, dword [ebx + 0x44]
push edx
push dword [ebx + 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00415a24
add esp, 4
push esi
call fcn.00415a24
add esp, 4
jmp 0x408ad0
push 0x5cc208
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], str.bad_Allocate
push eax
call fcn.00552cea
int3