Function at 0x49cf40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x11680]
test eax, eax
jne 0x49cf5e
mov dword [esi + 0x11680], 2
jmp 0x49cf63
cmp eax, 2
jne 0x49cfa1
lea edi, [esi + 0x148]
push edi
call fcn.004ca7d0
add esp, 4
test eax, eax
je 0x49cf95
push eax
call fcn.004a0a10
add esp, 4
cmp eax, 0xffffffdb
je 0x49d491
push edi
call fcn.004ca7d0
add esp, 4
test eax, eax
jne 0x49cf76
mov dword [esi + 0x11680], 3
jmp 0x49cfa6
cmp eax, 3
jne 0x49cfe9
lea edi, [esi + 0x154]
push edi
call fcn.004ca7d0
add esp, 4
test eax, eax
je 0x49cfdf
nop dword [eax]
push eax
call fcn.004a1950
add esp, 4
cmp eax, 0xffffffdb
je 0x49d491
push edi
call fcn.004ca7d0
add esp, 4
test eax, eax
jne 0x49cfc0
mov dword [esi + 0x11680], 4
test byte [esi + 0x40], 2
je 0x49d0d4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x49d00b
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x49d00b
lea eax, [esi + 0x6c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x114]
test eax, eax
je 0x49d029
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x49d029
lea eax, [esi + 0x118]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x128]
test eax, eax
je 0x49d049
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x49d049
lea eax, [esi + 0x12c]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x49d067
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x49d067
lea eax, [esi + 0x124]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x49d085
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x49d085
lea eax, [esi + 0xe0]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x49d0a5
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x49d0a5
lea eax, [esi + 0xf4]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x49d0c3
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x49d0c3
lea eax, [esi + 0xec]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x58]
test eax, eax
je 0x49d0d4
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x49d0e8
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x49d0fc
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x49d10d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49d11e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x49d132
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x130]
test eax, eax
je 0x49d146
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x134]
test eax, eax
je 0x49d15a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x138]
test eax, eax
je 0x49d16e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x49d182
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x49d196
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x49d1aa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x49d1be
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x100]
test eax, eax
je 0x49d1d2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x104]
test eax, eax
je 0x49d1e6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x49d1fa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x49d20e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1142c]
test eax, eax
je 0x49d222
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11438]
test eax, eax
je 0x49d236
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117a8]
test eax, eax
je 0x49d24a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117b0]
test eax, eax
je 0x49d25e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117c4]
test eax, eax
je 0x49d272
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117d0]
test eax, eax
je 0x49d286
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117ec]
test eax, eax
je 0x49d29a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117f4]
test eax, eax
je 0x49d2ae
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117e4]
test eax, eax
je 0x49d2c2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1180c]
test eax, eax
je 0x49d2d6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11814]
test eax, eax
je 0x49d2ea
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1181c]
test eax, eax
je 0x49d2fe
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1183c]
test eax, eax
je 0x49d312
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11844]
test eax, eax
je 0x49d326
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11858]
test eax, eax
je 0x49d33a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1188c]
test eax, eax
je 0x49d34e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11894]
test eax, eax
je 0x49d362
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118a4]
test eax, eax
je 0x49d376
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118b8]
test eax, eax
je 0x49d38a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118dc]
test eax, eax
je 0x49d39e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11a0c]
test eax, eax
je 0x49d3b2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11b38]
test eax, eax
je 0x49d3c6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x119f0]
test eax, eax
je 0x49d3da
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
cmp dword [esi + 0x8a4c], 0
je 0x49d3f2
mov eax, dword [esi + 0xc]
push esi
push dword [esi + 0x8a50]
call eax
add esp, 8
push ebx
lea ebx, [esi + 0x140]
push ebx
call fcn.004ca7d0
mov edi, eax
add esp, 4
test edi, edi
je 0x49d42d
push edi
call fcn.004ca7f0
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.004ca7d0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x49d408
cmp dword [esi + 0x168], 0
pop ebx
je 0x49d453
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8004667e
push dword [esi + 0x15c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x49d464
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x49d481
test byte [esi + 0x174], 1
je 0x49d481
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
pop ebp
ret
pop edi
mov eax, 0xffffffdb
pop esi
pop ebp
ret