Function at 0x4a7140
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 0x4a715e
mov dword [esi + 0x11680], 2
jmp 0x4a7163
cmp eax, 2
jne 0x4a71a1
lea edi, [esi + 0x148]
push edi
call fcn.004b7380
add esp, 4
test eax, eax
je 0x4a7195
push eax
call fcn.004aa770
add esp, 4
cmp eax, 0xffffffdb
je 0x4a7691
push edi
call fcn.004b7380
add esp, 4
test eax, eax
jne 0x4a7176
mov dword [esi + 0x11680], 3
jmp 0x4a71a6
cmp eax, 3
jne 0x4a71e9
lea edi, [esi + 0x154]
push edi
call fcn.004b7380
add esp, 4
test eax, eax
je 0x4a71df
nop dword [eax]
push eax
call fcn.004aa5f0
add esp, 4
cmp eax, 0xffffffdb
je 0x4a7691
push edi
call fcn.004b7380
add esp, 4
test eax, eax
jne 0x4a71c0
mov dword [esi + 0x11680], 4
test byte [esi + 0x40], 2
je 0x4a72d4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4a720b
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a720b
lea eax, [esi + 0x6c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x114]
test eax, eax
je 0x4a7229
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a7229
lea eax, [esi + 0x118]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x128]
test eax, eax
je 0x4a7249
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a7249
lea eax, [esi + 0x12c]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x4a7267
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a7267
lea eax, [esi + 0x124]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x4a7285
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a7285
lea eax, [esi + 0xe0]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4a72a5
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4a72a5
lea eax, [esi + 0xf4]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4a72c3
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4a72c3
lea eax, [esi + 0xec]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4a72d4
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4a72e8
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x4a72fc
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4a730d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a731e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x4a7332
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x130]
test eax, eax
je 0x4a7346
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x134]
test eax, eax
je 0x4a735a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x138]
test eax, eax
je 0x4a736e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x4a7382
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4a7396
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4a73aa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4a73be
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4a73d2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4a73e6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x4a73fa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x4a740e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1142c]
test eax, eax
je 0x4a7422
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11438]
test eax, eax
je 0x4a7436
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117a8]
test eax, eax
je 0x4a744a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117b0]
test eax, eax
je 0x4a745e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117c4]
test eax, eax
je 0x4a7472
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117d0]
test eax, eax
je 0x4a7486
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117ec]
test eax, eax
je 0x4a749a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117f4]
test eax, eax
je 0x4a74ae
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117e4]
test eax, eax
je 0x4a74c2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1180c]
test eax, eax
je 0x4a74d6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11814]
test eax, eax
je 0x4a74ea
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1181c]
test eax, eax
je 0x4a74fe
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1183c]
test eax, eax
je 0x4a7512
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11844]
test eax, eax
je 0x4a7526
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11858]
test eax, eax
je 0x4a753a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1188c]
test eax, eax
je 0x4a754e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11894]
test eax, eax
je 0x4a7562
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118a4]
test eax, eax
je 0x4a7576
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118b8]
test eax, eax
je 0x4a758a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118dc]
test eax, eax
je 0x4a759e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11a0c]
test eax, eax
je 0x4a75b2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11b38]
test eax, eax
je 0x4a75c6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x119f0]
test eax, eax
je 0x4a75da
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
cmp dword [esi + 0x8a4c], 0
je 0x4a75f2
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.004b7380
mov edi, eax
add esp, 4
test edi, edi
je 0x4a762d
push edi
call fcn.004b73c0
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.004b7380
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4a7608
cmp dword [esi + 0x168], 0
pop ebx
je 0x4a7653
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 0x4a7664
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4a7681
test byte [esi + 0x174], 1
je 0x4a7681
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