Function at 0x479f4b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push 2
pop eax
cmp dword [esi + 0xcc68], 0
jne 0x479f7a
push dword [esi + 0x90]
push str.Freeing_session_resource
push eax
push esi
call fcn.00420023
add esp, 0x10
mov dword [esi + 0xcc68], eax
push 0xffffffffffffffdb
pop edi
cmp dword [esi + 0xcc68], eax
jne 0x479fa6
jmp 0x479f92
mov ecx, eax
call fcn.00475022
cmp eax, edi
je 0x479fb1
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x479f87
mov dword [esi + 0xcc68], 3
cmp dword [esi + 0xcc68], 3
jne 0x479fd7
jmp 0x479fc3
mov eax, edi
jmp 0x47a38a
mov ecx, eax
call fcn.00474384
cmp eax, edi
je 0x479fb1
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x479fb8
mov dword [esi + 0xcc68], 4
test byte [esi + 0x34], 2
je 0x47a0bb
mov eax, dword [esi + 0x58]
test eax, eax
je 0x479ff8
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x479ff8
lea eax, [esi + 0x5c]
push eax
push esi
call ecx
pop ecx
pop ecx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47a015
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x47a015
lea eax, [esi + 0xd8]
push eax
push esi
call ecx
pop ecx
pop ecx
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x47a035
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x47a035
lea eax, [esi + 0xec]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x47a052
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x47a052
lea eax, [esi + 0xe4]
push eax
push esi
call ecx
pop ecx
pop ecx
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x47a06f
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x47a06f
lea eax, [esi + 0xa0]
push eax
push esi
call ecx
pop ecx
pop ecx
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x47a08f
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x47a08f
lea eax, [esi + 0xb4]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x47a0ac
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x47a0ac
lea eax, [esi + 0xac]
push eax
push esi
call ecx
pop ecx
pop ecx
cmp dword [esi + 0x48], 0
je 0x47a0bb
push esi
push dword [esi + 0x48]
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0x90]
test eax, eax
je 0x47a0cc
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x47a0dd
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
cmp dword [esi + 0x2c], 0
je 0x47a0ec
push esi
push dword [esi + 0x2c]
call dword [esi + 0xc]
pop ecx
pop ecx
cmp dword [esi + 0x30], 0
je 0x47a0fb
push esi
push dword [esi + 0x30]
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x47a10c
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x47a11d
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x47a12e
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x47a13f
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x47a150
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0x94]
test eax, eax
je 0x47a161
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x47a172
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x47a183
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x47a194
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x47a1a5
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcb30]
test eax, eax
je 0x47a1b6
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcb3c]
test eax, eax
je 0x47a1c7
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcd90]
test eax, eax
je 0x47a1d8
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcda4]
test eax, eax
je 0x47a1e9
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdb0]
test eax, eax
je 0x47a1fa
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdcc]
test eax, eax
je 0x47a20b
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdd4]
test eax, eax
je 0x47a21c
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdc4]
test eax, eax
je 0x47a22d
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdec]
test eax, eax
je 0x47a23e
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdf4]
test eax, eax
je 0x47a24f
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcdfc]
test eax, eax
je 0x47a260
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce1c]
test eax, eax
je 0x47a271
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce24]
test eax, eax
je 0x47a282
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce38]
test eax, eax
je 0x47a293
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce6c]
test eax, eax
je 0x47a2a4
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce74]
test eax, eax
je 0x47a2b5
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce84]
test eax, eax
je 0x47a2c6
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xce98]
test eax, eax
je 0x47a2d7
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcebc]
test eax, eax
je 0x47a2e8
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcfb0]
test eax, eax
je 0x47a2f9
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xd0d4]
test eax, eax
je 0x47a30a
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
mov eax, dword [esi + 0xcf94]
test eax, eax
je 0x47a31b
push esi
push eax
call dword [esi + 0xc]
pop ecx
pop ecx
cmp dword [esi + 0x4150], 0
je 0x47a348
push esi
push dword [esi + 0x4154]
call dword [esi + 0xc]
pop ecx
pop ecx
jmp 0x47a348
mov ecx, edi
call fcn.00477a97
push esi
push dword [edi + 0xc]
call dword [esi + 0xc]
push esi
push edi
call dword [esi + 0xc]
add esp, 0x10
mov edi, dword [esi + 0x104]
test edi, edi
jne 0x47a332
cmp dword [esi + 0x128], edi
je 0x47a372
and dword [ebp - 4], edi
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [esi + 0x11c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x60], 0
je 0x47a381
push esi
push dword [esi + 0x60]
call dword [esi + 0xc]
pop ecx
pop ecx
push esi
push esi
call dword [esi + 0xc]
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret