Function at 0x4a2ba0
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 0x4a2bbe
mov dword [esi + 0x11680], 2
jmp 0x4a2bc3
cmp eax, 2
jne 0x4a2c01
lea edi, [esi + 0x148]
push edi
call fcn.004b2de0
add esp, 4
test eax, eax
je 0x4a2bf5
push eax
call fcn.004a61d0
add esp, 4
cmp eax, 0xffffffdb
je 0x4a30f1
push edi
call fcn.004b2de0
add esp, 4
test eax, eax
jne 0x4a2bd6
mov dword [esi + 0x11680], 3
jmp 0x4a2c06
cmp eax, 3
jne 0x4a2c49
lea edi, [esi + 0x154]
push edi
call fcn.004b2de0
add esp, 4
test eax, eax
je 0x4a2c3f
nop dword [eax]
push eax
call fcn.004a6050
add esp, 4
cmp eax, 0xffffffdb
je 0x4a30f1
push edi
call fcn.004b2de0
add esp, 4
test eax, eax
jne 0x4a2c20
mov dword [esi + 0x11680], 4
test byte [esi + 0x40], 2
je 0x4a2d34
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4a2c6b
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2c6b
lea eax, [esi + 0x6c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x114]
test eax, eax
je 0x4a2c89
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2c89
lea eax, [esi + 0x118]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4a2ca9
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a2ca9
lea eax, [esi + 0x12c]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4a2cc7
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a2cc7
lea eax, [esi + 0x124]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x4a2ce5
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2ce5
lea eax, [esi + 0xe0]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4a2d05
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a2d05
lea eax, [esi + 0xf4]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4a2d23
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a2d23
lea eax, [esi + 0xec]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4a2d34
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4a2d48
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x4a2d5c
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4a2d6d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a2d7e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4a2d92
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x130]
test eax, eax
je 0x4a2da6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x134]
test eax, eax
je 0x4a2dba
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x138]
test eax, eax
je 0x4a2dce
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x4a2de2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4a2df6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4a2e0a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4a2e1e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4a2e32
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4a2e46
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x4a2e5a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x4a2e6e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1142c]
test eax, eax
je 0x4a2e82
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11438]
test eax, eax
je 0x4a2e96
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117a8]
test eax, eax
je 0x4a2eaa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117b0]
test eax, eax
je 0x4a2ebe
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117c4]
test eax, eax
je 0x4a2ed2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117d0]
test eax, eax
je 0x4a2ee6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117ec]
test eax, eax
je 0x4a2efa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117f4]
test eax, eax
je 0x4a2f0e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117e4]
test eax, eax
je 0x4a2f22
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1180c]
test eax, eax
je 0x4a2f36
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11814]
test eax, eax
je 0x4a2f4a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1181c]
test eax, eax
je 0x4a2f5e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1183c]
test eax, eax
je 0x4a2f72
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11844]
test eax, eax
je 0x4a2f86
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11858]
test eax, eax
je 0x4a2f9a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1188c]
test eax, eax
je 0x4a2fae
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11894]
test eax, eax
je 0x4a2fc2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118a4]
test eax, eax
je 0x4a2fd6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118b8]
test eax, eax
je 0x4a2fea
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118dc]
test eax, eax
je 0x4a2ffe
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11a0c]
test eax, eax
je 0x4a3012
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11b38]
test eax, eax
je 0x4a3026
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x119f0]
test eax, eax
je 0x4a303a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
cmp dword [esi + 0x8a4c], 0
je 0x4a3052
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.004b2de0
mov edi, eax
add esp, 4
test edi, edi
je 0x4a308d
push edi
call fcn.004b2e20
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.004b2de0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4a3068
cmp dword [esi + 0x168], 0
pop ebx
je 0x4a30b3
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 0x4a30c4
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4a30e1
test byte [esi + 0x174], 1
je 0x4a30e1
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