Function at 0x4229b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c0120]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x29
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 4
jg 0x422b10
je 0x422aad
test ebx, ebx
je 0x422a0a
cmp ebx, 6
jne case.0x422ac3.14
mov esi, dword [ebp + 0x10]
mov edx, esi
sub edx, 1
jne case.0x422ac3.14
mov eax, dword [ecx]
movzx ecx, byte [eax]
mov dword [ebp - 0x18], ecx
mov eax, 4
jmp 0x422a48
mov esi, dword [ebp + 0x10]
lea edx, [esi - 9]
cmp edx, eax
ja case.0x422ac3.14
jmp dword [edx*4 + 0x422c18]
cmp dword [ecx + 4], eax
je case.0x422a18.10
mov dword [edi + 0xc], 0x802
pop edi
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx]
mov ecx, dword [edx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x422c05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0xc], eax
add eax, 0xffffd8ec
cmp eax, 0x2e
ja case.0x422a7f.10005
movzx edx, byte [eax + 0x422c40]
jmp dword [edx*4 + 0x422c2c]
mov edx, dword [ecx]
movzx ecx, byte [edx]
jmp 0x422a45
cmp dword [ecx + 4], eax
jne 0x422a24
cmp dword [ecx + 0xc], eax
jne 0x422a24
mov edx, dword [ecx]
mov eax, dword [edx]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, 8
jmp 0x422a48
mov esi, dword [ebp + 0x10]
lea edx, [esi - 9]
cmp edx, 0x12
ja case.0x422ac3.14
movzx edx, byte [edx + 0x422c84]
jmp dword [edx*4 + 0x422c70]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, 4
jmp 0x422a48
cmp dword [ecx + 4], 0x10
jne 0x422a24
mov eax, dword [ecx]
mov edx, dword [eax]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, 0x14
jmp 0x422a48
cmp ebx, 0xffff
jne case.0x422ac3.14
mov esi, dword [ebp + 0x10]
cmp esi, 8
jg 0x422b38
je case.0x422ac3.11
cmp esi, 0xfffffffb
je case.0x422ac3.11
cmp esi, eax
jne case.0x422ac3.14
mov ecx, dword [ecx]
movzx edx, byte [ecx]
mov dword [ebp - 0x18], edx
jmp 0x422a48
cmp esi, 0x80
je 0x422b61
cmp esi, 0x1000
jle case.0x422ac3.14
cmp esi, 0x1004
jg case.0x422ac3.14
mov eax, dword [ecx]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov eax, 4
jmp 0x422a48
mov edx, dword [ecx]
movzx ax, byte [edx]
mov ecx, dword [ecx + 4]
mov word [ebp - 0x18], ax
mov dx, word [ecx]
mov word [ebp - 0x16], dx
mov eax, 4
jmp 0x422a48
mov dword [edi + 0xc], 0x801
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455bf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00455bf8
mov esp, ebp
pop ebp
ret