Function at 0x422090
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
xor edi, edi
mov dword [esp + 0xc], 0x10
call fcn.00421440
mov esi, dword [sym.imp.WS2_32.dll_accept]
nop
mov edx, dword [ebx + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4220ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x4220e2
cmp eax, 0x2736
je 0x4220e2
cmp eax, 0x2726
jne 0x4220b0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret 4
push 4
lea eax, [esp + 0x14]
push eax
push 8
push 0xffff
push edi
mov dword [esp + 0x24], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebx + 0x1088]
test eax, eax
jle 0x422153
lea ebp, [ebx + 0x10a0]
push ebp
call fcn.00403750
mov ecx, dword [esp + 0x18]
push ecx
lea eax, [ebx + 0x106c]
call fcn.00423220
movzx edx, word [eax]
cmp edx, dword [ebx + 0x1088]
jl 0x422228
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4220b0
mov ecx, dword [esp + 0x28]
mov ebp, dword [ecx]
mov esi, dword [ebp + 0x34]
cmp esi, 0xffffffff
je 0x422178
push 2
push esi
mov dword [ebp + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
call fcn.004225f0
mov dword [ebp + 0x34], edi
mov ebp, dword [esp + 0x28]
mov edi, dword [ebp]
mov ecx, dword [edi + 0x1060]
add edi, 0x1060
test ecx, ecx
je 0x4221a4
call fcn.0052a247
mov dword [edi], 0
mov ecx, ebx
mov dword [edi], ebx
call fcn.0052a396
lea esi, [ebx + 0x10a0]
push esi
call fcn.00403750
mov eax, dword [ebp]
mov dword [eax + 0x28], 0
mov ecx, dword [ebx + 0x1064]
test ecx, ecx
je 0x4221d2
add ecx, 0x24
jmp 0x4221d4
xor ecx, ecx
lea edx, [eax + 0x24]
mov dword [edx], ecx
mov ecx, dword [ebx + 0x1068]
test ecx, ecx
je 0x422207
mov ecx, dword [ebx + 0x1064]
mov dword [ecx + 0x28], edx
mov dword [ebx + 0x1064], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret 4
mov dword [ebx + 0x1068], eax
mov dword [ebx + 0x1064], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret 4
inc word [eax]
mov eax, dword [esp + 0x28]
mov ebp, dword [eax]
mov esi, dword [ebp + 0x34]
cmp esi, 0xffffffff
je 0x422250
push 2
push esi
mov dword [ebp + 0x34], 0xffffffff
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
call fcn.004225f0
mov esi, dword [esp + 0x28]
mov dword [ebp + 0x34], edi
mov edi, dword [esi]
mov ecx, dword [edi + 0x1060]
add edi, 0x1060
test ecx, ecx
je 0x42227b
call fcn.0052a247
mov dword [edi], 0
mov ecx, ebx
mov dword [edi], ebx
call fcn.0052a396
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x108c], edx
mov eax, dword [esi]
mov dword [eax + 0x28], 0
mov ecx, dword [ebx + 0x1064]
test ecx, ecx
je 0x4222a8
lea edx, [ecx + 0x24]
jmp 0x4222aa
xor edx, edx
lea ecx, [eax + 0x24]
mov dword [ecx], edx
mov edx, dword [ebx + 0x1068]
test edx, edx
je 0x4222c4
mov edx, dword [ebx + 0x1064]
mov dword [edx + 0x28], ecx
jmp 0x4222ca
mov dword [ebx + 0x1068], eax
lea ecx, [ebx + 0x10a0]
mov dword [ebx + 0x1064], eax
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x18
ret 4