Function at 0x41b420
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x480e6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b445c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x56]
test al, al
jne 0x41b553
cmp byte [esi + 0x57], al
jne 0x41b54a
cmp dword [esi + 0x2c], 0
jne 0x41b54a
mov ecx, dword [esi + 0xc]
xor bl, bl
test ecx, ecx
je 0x41b476
call fcn.0041a870
test al, al
jne 0x41b4ee
mov eax, dword [esi + 0x50]
add eax, 0xfffffffd
cmp eax, 5
ja case.0x41b485.5
jmp dword [eax*4 + 0x41b768]
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x41b4a4
cmp byte [esi + 0x58], 0
jne 0x41b4a4
movzx ax, byte [esi + 0x34]
push eax
call fcn.00418370
mov eax, dword [0x4bae60]
test eax, eax
je 0x41b4c0
movzx ecx, byte [esi + 0x34]
push ecx
push str.CTcpChannel::QueryOperation____ch:_d__Ready___IsActive__Close
push eax
call fcn.00430fd0
add esp, 0xc
mov ecx, esi
call fcn.0041b270
push 7
mov ecx, esi
mov bl, 3
call fcn.0041ae30
jmp case.0x41b485.5
mov ecx, esi
call fcn.0041b270
push 1
mov ecx, esi
mov bl, 3
call fcn.0041ae30
jmp case.0x41b485.5
mov eax, dword [esi + 0x50]
sub eax, 3
je 0x41b53a
sub eax, 1
je 0x41b52a
sub eax, 4
jne case.0x41b485.5
mov ecx, esi
call fcn.004183e0
test al, al
jne case.0x41b485.5
mov bl, 3
mov ecx, esi
call fcn.0041b270
push 1
mov ecx, esi
call fcn.0041ae30
jmp case.0x41b485.5
push 5
mov ecx, esi
mov bl, 1
call fcn.0041ae30
jmp case.0x41b485.5
push 6
mov ecx, esi
mov bl, 1
call fcn.0041ae30
jmp case.0x41b485.5
test al, al
jne 0x41b553
cmp byte [esi + 0x57], al
je 0x41b5cc
cmp dword [esi + 0x50], 8
jne 0x41b5c2
call fcn.0041b270
mov eax, dword [esi + 0x50]
cmp eax, 1
je 0x41b58d
mov ecx, dword [0x4bae60]
test ecx, ecx
je 0x41b586
push 1
push eax
movzx eax, byte [esi + 0x34]
push eax
push str.CTcpChannel::SetStatus___channel:_d___d__d
push ecx
call fcn.00430fd0
add esp, 0x14
mov dword [esi + 0x50], 1
mov eax, dword [0x4bae60]
test eax, eax
je 0x41b5ad
mov ecx, dword [esi + 0x50]
movzx edx, byte [esi + 0x34]
push ecx
push edx
push str.CTcpChannel::QueryOperation____start_stop_pending_do_close__ch:_d__status:_d
push eax
call fcn.00430fd0
add esp, 0x10
mov al, 3
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp byte [esi + 0x57], 0
jne 0x41b706
test al, al
je 0x41b5da
cmp dword [esi + 0x2c], 0
jne 0x41b706
test al, al
mov ebx, 2
je 0x41b60f
cmp dword [esi + 0x2c], 0
jne 0x41b60f
mov al, byte [esi + 0x54]
test al, al
je 0x41b5f9
cmp dword [esi + 0x50], ebx
je 0x41b5ff
test al, al
jne 0x41b60a
cmp dword [esi + 0x50], 1
jne 0x41b60a
call fcn.0041b0f0
mov byte [esi + 0x56], 0
jmp 0x41b60f
call fcn.0041b270
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41b6ab
cmp byte [eax + 0xc], 0
je 0x41b6ab
mov edi, dword [eax + 8]
test edi, edi
mov dword [esi + 0x2c], 0
je 0x41b6c0
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x10]
push ecx
add eax, 0x3c
push 0x8004667e
push edx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x6c
call fcn.00449d87
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x41b681
push 0x2000
push edi
mov ecx, eax
call fcn.0041ad20
jmp 0x41b683
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
push eax
lea ecx, [esi + 8]
call fcn.00418ec0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41b6c0
call fcn.0041a870
test al, al
je 0x41b6c0
mov ecx, esi
call fcn.0041b340
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [0x4bae60]
test eax, eax
je 0x41b6dc
movzx ecx, byte [esi + 0x34]
push ecx
push str.CTcpChannel::QueryOperation____ch:_d__failed_connecting_local
push eax
call fcn.00430fd0
add esp, 0xc
mov ecx, esi
call fcn.0041b270
cmp dword [esi + 0x50], ebx
jne 0x41b6ab
push 1
mov ecx, esi
call fcn.0041ae30
mov al, 3
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
xor bl, bl
cmp dword [esi + 0x2c], 0
je 0x41b71d
cmp dword [esi + 0x50], 2
jne 0x41b71d
push 1
call fcn.0041ae30
mov bl, 3
mov ecx, esi
call fcn.0041b270
mov byte [esi + 0x57], 0
mov eax, dword [0x4bae60]
test eax, eax
je 0x41b750
test bl, bl
je 0x41b750
mov ecx, dword [esi + 0x50]
movzx edx, bl
push edx
movzx edx, byte [esi + 0x34]
push ecx
push edx
push str.CTcpChannel::QueryOperation____ch:_d__status:_d__opCode:_d
push eax
call fcn.00430fd0
add esp, 0x14
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret