Function at 0x10019f20
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0xcda8]
test eax, eax
jne 0x10019f52
push dword [esi + 0xb8]
push str.Freeing_session_resource
push 2
push esi
call fcn.10001350
add esp, 0x10
mov dword [esi + 0xcda8], 2
jmp 0x10019f57
cmp eax, 2
jne 0x10019f9b
lea edi, [esi + 0x130]
push edi
call fcn.10013dc0
add esp, 4
test eax, eax
je 0x10019f8f
nop word [eax + eax]
push eax
call fcn.100067b0
add esp, 4
cmp eax, 0xffffffdb
je 0x1001a44a
push edi
call fcn.10013dc0
add esp, 4
test eax, eax
jne 0x10019f70
mov dword [esi + 0xcda8], 3
jmp 0x10019fa0
cmp eax, 3
jne 0x10019fdc
lea edi, [esi + 0x13c]
push edi
call fcn.10013dc0
add esp, 4
test eax, eax
je 0x10019fd2
push eax
call fcn.10006610
add esp, 4
cmp eax, 0xffffffdb
je 0x1001a44a
push edi
call fcn.10013dc0
add esp, 4
test eax, eax
jne 0x10019fb3
mov dword [esi + 0xcda8], 4
test byte [esi + 0x34], 2
je 0x1001a0c7
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10019ffe
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x10019ffe
lea eax, [esi + 0x5c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x1001a01c
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1001a01c
lea eax, [esi + 0x100]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1001a03c
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1001a03c
lea eax, [esi + 0x114]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x104]
test eax, eax
je 0x1001a05a
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1001a05a
lea eax, [esi + 0x10c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x1001a078
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x1001a078
lea eax, [esi + 0xc8]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x1001a098
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1001a098
lea eax, [esi + 0xdc]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x1001a0b6
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1001a0b6
lea eax, [esi + 0xd4]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1001a0c7
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x1001a0db
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x1001a0ef
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1001a100
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1001a111
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x1001a125
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118]
test eax, eax
je 0x1001a139
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x1001a14d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x120]
test eax, eax
je 0x1001a161
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x124]
test eax, eax
je 0x1001a175
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x1001a189
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x1001a19d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x1001a1b1
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x1001a1c5
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xec]
test eax, eax
je 0x1001a1d9
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcb5c]
test eax, eax
je 0x1001a1ed
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcb68]
test eax, eax
je 0x1001a201
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xced0]
test eax, eax
je 0x1001a215
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcee4]
test eax, eax
je 0x1001a229
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcef0]
test eax, eax
je 0x1001a23d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf0c]
test eax, eax
je 0x1001a251
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf14]
test eax, eax
je 0x1001a265
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf04]
test eax, eax
je 0x1001a279
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf2c]
test eax, eax
je 0x1001a28d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf34]
test eax, eax
je 0x1001a2a1
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf3c]
test eax, eax
je 0x1001a2b5
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf5c]
test eax, eax
je 0x1001a2c9
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf64]
test eax, eax
je 0x1001a2dd
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcf78]
test eax, eax
je 0x1001a2f1
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcfac]
test eax, eax
je 0x1001a305
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcfb4]
test eax, eax
je 0x1001a319
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcfc4]
test eax, eax
je 0x1001a32d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcfd8]
test eax, eax
je 0x1001a341
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcffc]
test eax, eax
je 0x1001a355
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0f0]
test eax, eax
je 0x1001a369
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd218]
test eax, eax
je 0x1001a37d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0d4]
test eax, eax
je 0x1001a391
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
cmp dword [esi + 0x417c], 0
je 0x1001a3a9
mov eax, dword [esi + 0xc]
push esi
push dword [esi + 0x4180]
call eax
add esp, 8
push ebx
lea ebx, [esi + 0x128]
push ebx
call fcn.10013dc0
mov edi, eax
add esp, 4
test edi, edi
je 0x1001a3e5
nop
push edi
call fcn.10013e00
mov eax, dword [esi + 0xc]
push esi
push dword [edi + 0xc]
call eax
mov eax, dword [esi + 0xc]
push esi
push edi
call eax
push ebx
call fcn.10013dc0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1001a3c0
cmp dword [esi + 0x150], 0
pop ebx
je 0x1001a40d
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x8004667e
push dword [esi + 0x144]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1001a41e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x154]
test eax, eax
je 0x1001a43b
test byte [esi + 0x15c], 1
je 0x1001a43b
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xc]
push esi
push esi
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, 0xffffffdb
pop esi
ret