Function at 0x506446
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x56eebb
call fcn.0053c1d0
sub esp, 0x7c
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x5af710]
push ebx
xor eax, ebp
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], ecx
je 0x506573
cmp byte [eax], bl
je 0x506573
cmp dword [0x5b21d0], ebx
je 0x506573
push 0x572aed
call fcn.00404af0
mov ecx, dword [ebp - 0x4c]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00404360
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00404360
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00404360
lea eax, [ebp - 0x50]
push eax
push ebx
mov dword [ebp - 0x50], ebx
call dword [0x5b21d0]
cmp eax, 0x6f
jne 0x506573
push dword [ebp - 0x50]
lea ecx, [ebp - 0x6c]
call fcn.00402b40
mov esi, dword [ebp - 0x6c]
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x506573
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, esi
call dword [0x5b21d0]
cmp eax, ebx
jne 0x50656c
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004023c0
push 4
lea eax, [edi + 0x194]
push eax
push dword [edi + 0x190]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.0050495c
add esp, 0x10
push dword [ebp - 0x64]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00426b60
test eax, eax
je 0x50658e
mov edi, dword [edi]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402c50
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402c50
cmp edi, ebx
jne 0x50650b
push esi
call fcn.0055047a
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
leave
ret
mov ecx, dword [ebp - 0x60]
lea eax, [edi + 8]
push eax
call fcn.00404af0
lea esi, [edi + 0x1ac]
call fcn.005040f5
test eax, eax
jne 0x5065ce
cmp esi, ebx
je 0x506665
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00505ec6
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x5065f7
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x18], 0x10
jb 0x5065dc
mov eax, dword [eax + 4]
jmp 0x5065df
add eax, 4
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00505205
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
push 0xffffffffffffffff
push ebx
push eax
call fcn.00404360
push ebx
lea ecx, [ebp - 0x88]
push 1
mov byte [ebp - 4], 2
call fcn.00402c50
jmp 0x506661
lea eax, [esi + 4]
push eax
call sub.WSOCK32.dll_inet_addr
push eax
call fcn.00503ddc
add esp, 4
test al, al
je 0x50665f
mov ecx, dword [ebp - 0x58]
lea eax, [esi + 4]
push eax
call fcn.0040b8bf
mov ecx, dword [ebp - 0x58]
push 0x572bf4
call fcn.0040b8bf
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + 0x14]
push eax
call fcn.0040b8bf
mov ecx, dword [ebp - 0x4c]
push 0x572bf4
call fcn.0040b8bf
mov esi, dword [esi]
cmp esi, ebx
jne 0x506617
lea esi, [edi + 0x1d4]
jmp 0x50669b
lea edi, [esi + 4]
push edi
call sub.WSOCK32.dll_inet_addr
push eax
call fcn.00503ddc
add esp, 4
test al, al
je 0x506699
mov ecx, dword [ebp - 0x54]
push edi
call fcn.0040b8bf
mov ecx, dword [ebp - 0x54]
push 0x572bf4
call fcn.0040b8bf
mov esi, dword [esi]
cmp esi, ebx
jne 0x50666d
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00402c50
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402c50
push dword [ebp - 0x6c]
call fcn.0055047a
xor eax, eax
pop ecx
inc eax
jmp 0x506575