Function at 0x475840
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507460
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x230]
push 7
push eax
call fcn.00417040
add esp, 8
cmp dword [ebp - 0x220], 0
mov dword [ebp - 4], 0
je 0x4758b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.WPS_OFFICE6_ROOT_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x824
lea eax, [ebp - 0xa54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa58], 0xffffffff
call fcn.00410170
lea edx, [ebp - 0xa58]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
test eax, eax
jns 0x47590a
push eax
push 0x518a24
push str.kupdate::KAutonomousInfoCollect::_init
push 0x12e
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcinfocollect_autonomousinfocollect.cpp
push 0
call fcn.00412230
add esp, 0x18
jmp 0x475919
lea eax, [ebp - 0xa58]
push eax
lea ecx, [esi + 8]
call fcn.004726f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.HKEY_CURRENT_USERSoftwareKingsoftOffice6.0CommonupdateinfoCustomAutoNomInfoSvr
call fcn.0044cf60
add esp, 0x1c
test eax, eax
js 0x475964
lea edx, [ebp - 0x218]
lea ecx, [esi + 4]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475957
jmp 0x47599b
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.HKEY_LOCAL_MACHINESoftwareKingsoftOffice6.0CommonCustomAutoNomInfoSvr
call fcn.0044cf60
add esp, 0x10
test eax, eax
js 0x4759ac
lea edx, [ebp - 0x218]
lea ecx, [esi + 4]
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x475990
sub edx, edi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.00421c30
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.HKEY_CURRENT_USERSoftwareKingsoftOffice6.0CommonupdateinfoAutoNomInfoSvr
call fcn.0044cf60
add esp, 0x10
test eax, eax
js 0x4759e6
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4759d4
sub edx, ecx
sar edx, 1
push edx
jmp 0x475a20
push 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.HKEY_LOCAL_MACHINESoftwareKingsoftOffice6.0CommonAutoNomInfoSvr
call fcn.0044cf60
add esp, 0x10
test eax, eax
js 0x475a2e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475a10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00421c30
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x475a70
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475a66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x475a66
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret