Function at 0x477350
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 0x47736e
mov dword [esi + 0x11680], 2
jmp 0x477373
cmp eax, 2
jne 0x4773b1
lea edi, [esi + 0x148]
push edi
call fcn.0049af70
add esp, 4
test eax, eax
je 0x4773a5
push eax
call fcn.0047ae60
add esp, 4
cmp eax, 0xffffffdb
je 0x4778a1
push edi
call fcn.0049af70
add esp, 4
test eax, eax
jne 0x477386
mov dword [esi + 0x11680], 3
jmp 0x4773b6
cmp eax, 3
jne 0x4773f9
lea edi, [esi + 0x154]
push edi
call fcn.0049af70
add esp, 4
test eax, eax
je 0x4773ef
nop dword [eax]
push eax
call fcn.0047bda0
add esp, 4
cmp eax, 0xffffffdb
je 0x4778a1
push edi
call fcn.0049af70
add esp, 4
test eax, eax
jne 0x4773d0
mov dword [esi + 0x11680], 4
test byte [esi + 0x40], 2
je 0x4774e4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x47741b
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x47741b
lea eax, [esi + 0x6c]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x114]
test eax, eax
je 0x477439
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x477439
lea eax, [esi + 0x118]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x128]
test eax, eax
je 0x477459
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x477459
lea eax, [esi + 0x12c]
push eax
push 1
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x477477
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x477477
lea eax, [esi + 0x124]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x477495
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x477495
lea eax, [esi + 0xe0]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x4774b5
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4774b5
lea eax, [esi + 0xf4]
push eax
push 0
push esi
call ecx
add esp, 0xc
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4774d3
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4774d3
lea eax, [esi + 0xec]
push eax
push esi
call ecx
add esp, 8
mov eax, dword [esi + 0x58]
test eax, eax
je 0x4774e4
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x4774f8
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x108]
test eax, eax
je 0x47750c
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47751d
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47752e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x477542
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x130]
test eax, eax
je 0x477556
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x134]
test eax, eax
je 0x47756a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x138]
test eax, eax
je 0x47757e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x477592
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x4775a6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4775ba
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x4775ce
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4775e2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4775f6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x47760a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x47761e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1142c]
test eax, eax
je 0x477632
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11438]
test eax, eax
je 0x477646
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117a8]
test eax, eax
je 0x47765a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117b0]
test eax, eax
je 0x47766e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117c4]
test eax, eax
je 0x477682
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117d0]
test eax, eax
je 0x477696
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117ec]
test eax, eax
je 0x4776aa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117f4]
test eax, eax
je 0x4776be
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x117e4]
test eax, eax
je 0x4776d2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1180c]
test eax, eax
je 0x4776e6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11814]
test eax, eax
je 0x4776fa
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1181c]
test eax, eax
je 0x47770e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1183c]
test eax, eax
je 0x477722
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11844]
test eax, eax
je 0x477736
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11858]
test eax, eax
je 0x47774a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x1188c]
test eax, eax
je 0x47775e
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11894]
test eax, eax
je 0x477772
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118a4]
test eax, eax
je 0x477786
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118b8]
test eax, eax
je 0x47779a
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x118dc]
test eax, eax
je 0x4777ae
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11a0c]
test eax, eax
je 0x4777c2
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x11b38]
test eax, eax
je 0x4777d6
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x119f0]
test eax, eax
je 0x4777ea
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
cmp dword [esi + 0x8a4c], 0
je 0x477802
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.0049af70
mov edi, eax
add esp, 4
test edi, edi
je 0x47783d
push edi
call fcn.0049af90
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.0049af70
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x477818
cmp dword [esi + 0x168], 0
pop ebx
je 0x477863
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 0x477874
push esi
push eax
mov eax, dword [esi + 0xc]
call eax
add esp, 8
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x477891
test byte [esi + 0x174], 1
je 0x477891
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