Function at 0x497d30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514f48
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x150], edi
push str.CCloudDllConfig_UpdateConfig
call fcn.004b8eac
mov eax, dword [edi]
add esp, 4
or eax, dword [edi + 4]
push 0
jne 0x497dac
call fcn.004c9d16
mov ecx, dword [edi + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [edi + 8]
shl ecx, 2
mov dword [edi], eax
mov dword [edi + 4], edx
test ecx, ecx
jle 0x497db9
push ecx
push 0
call fcn.004b7c81
cdq
add esp, 8
add dword [edi], eax
adc dword [edi + 4], edx
jmp 0x497db9
call fcn.004c9d16
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], edx
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004c42d0
push 0x1869f
push 0x2710
call fcn.004b7c81
lea ecx, [edi + 0x88]
add esp, 0x14
cmp dword [ecx + 0x14], 0x10
jb 0x497dec
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x114]
push 0x561740
push eax
call fcn.004978e0
add esp, 0x10
mov dword [ebp - 0x118], 0xf
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x497e2a
xor ecx, ecx
jmp 0x497e3c
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497e33
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004990e0
push 0x58
mov dword [ebp - 4], 0
call fcn.004add5f
add esp, 4
mov dword [ebp - 0x148], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004b9256
mov ebx, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x14c], ebx
test ebx, ebx
je 0x497f9f
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
call fcn.004b9627
mov ecx, ebx
call fcn.004b95e2
mov dword [ebp - 0x148], eax
test eax, eax
je 0x497f86
mov esi, dword [eax + 0x10]
sub esi, dword [eax + 0xc]
mov eax, 1
cmove esi, eax
inc esi
push esi
call fcn.004adda0
push esi
mov ebx, eax
push 0
push ebx
call fcn.004c42d0
mov edx, dword [ebp - 0x148]
add esp, 0x10
xor esi, esi
mov ecx, dword [edx + 0x10]
sub ecx, dword [edx + 0xc]
je 0x497f0d
xor edi, edi
nop dword [eax]
mov eax, dword [edx + 0xc]
mov cl, byte [edi + str.GUANGSU]
mov al, byte [esi + eax]
xor cl, al
mov byte [esi + ebx], cl
lea ecx, [edi + 1]
mov eax, dword [edx + 0x10]
xor edi, edi
sub eax, dword [edx + 0xc]
inc esi
cmp ecx, 7
cmovl edi, ecx
cmp esi, eax
jb 0x497ee0
mov edi, dword [ebp - 0x150]
push ebx
mov ecx, edi
call fcn.00498150
test al, al
jne 0x497f73
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004b87cd
add esp, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x497f3b
mov eax, dword [eax]
push eax
push str.CheckToTips_ParseConfig_fail_url_:__s
call fcn.004b8eac
mov eax, dword [ebp - 0x130]
add esp, 8
cmp eax, 8
jb 0x497f67
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00499470
test ebx, ebx
je 0x497f9f
push ebx
call fcn.004add5a
jmp 0x497f9c
test ebx, ebx
je 0x497f80
push ebx
call fcn.004add5a
add esp, 4
mov ebx, dword [ebp - 0x14c]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push str.UpdateConfig_ok
mov byte [edi + 0xc], 1
call fcn.004b8eac
add esp, 4
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x497fef
mov ecx, dword [ebp - 0x12c]
inc eax
cmp eax, 0x1000
jb 0x497fe6
test cl, 0x1f
je 0x497fc2
call fcn.004cac60
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x497fce
call fcn.004cac60
sub ecx, eax
cmp ecx, 4
jae 0x497fda
call fcn.004cac60
cmp ecx, 0x23
jbe 0x497fe4
call fcn.004cac60
mov ecx, eax
push ecx
call fcn.004add44
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret