Function at 0x402350
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43c601
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x44], edi
xor ebx, ebx
mov dword [esp + 0x18], 0x441b3c
mov dword [esp + 0x864], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x86c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x868], 1
call sub.MFC42u.DLL_CString::CString_3
push 0xc
mov byte [esp + 0x868], 2
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x864], 3
je 0x4023da
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.004059d0
jmp 0x4023dc
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x864], 2
mov dword [esp + 0x28], eax
jne 0x4023f6
push 0x8007000e
call fcn.0043bfa0
push 0xc
mov byte [esp + 0x868], 4
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x864], 5
je 0x402426
push str.configconfig.xml
mov ecx, eax
call fcn.004059d0
jmp 0x402428
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x864], 4
mov dword [esp + 0x10], eax
jne 0x402442
push 0x8007000e
call fcn.0043bfa0
mov byte [esp + 0x864], 6
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
call fcn.004058a0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x864], 9
cmp eax, ebx
mov dword [esp + 0x30], 0x441b38
je 0x402530
mov eax, dword [eax]
cmp eax, ebx
je 0x402530
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x402530
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024a9
mov eax, dword [eax]
jmp 0x4024ab
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x4024c7
lea edx, [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x38]
call fcn.004065b0
jmp 0x402530
lea eax, [esp + 0x5c]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4024ef
mov eax, dword [eax]
jmp 0x4024f1
xor eax, eax
push eax
lea edx, [esp + 0x60]
lea eax, [esp + 0x60]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x10]
call fcn.004058c0
lea edx, [esp + 0xc]
push ebx
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x86c], 0xa
call fcn.004065b0
lea ecx, [esp + 0xc]
call fcn.00405980
lea ecx, [esp + 0x10]
call fcn.00405980
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 0xc
call fcn.00405980
mov eax, dword [esp + 0x86c]
mov ecx, dword [edi + 0xcc]
add edi, 0xcc
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebx
jne 0x4025db
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0x441b38
call fcn.00405980
lea ecx, [esp + 0x38]
call fcn.00405980
lea ecx, [esp + 0x34]
call fcn.00405830
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], 1
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x18], 0x441b3c
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x868], 0xf
call fcn.00405840
push ebx
lea ecx, [esp + 0x20]
call fcn.00405840
lea ecx, [esp + 0x20]
call fcn.00405830
lea ecx, [esp + 0x1c]
call fcn.00405830
jmp 0x402745
lea edx, [esp + 0x86c]
mov ecx, edi
push edx
call sub.MFC42u.DLL_CString::operator_2
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x864], 0x10
je 0x402612
push 0x44b850
mov ecx, eax
call fcn.004059d0
jmp 0x402614
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x864], 0xc
mov dword [esp + 0xc], eax
jne 0x40262e
push 0x8007000e
call fcn.0043bfa0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x86c], 0x11
call fcn.00407460
mov esi, eax
lea ecx, [esp + 0x1c]
mov edx, dword [esi + 4]
push edx
call fcn.00405870
mov eax, dword [esi + 8]
lea ecx, [esp + 0x20]
push eax
call fcn.00405870
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x4c]
call fcn.00405dc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x864], 0xc
call fcn.00405980
mov eax, dword [edi]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push 1
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call sub.MFC42u.DLL_AfxGetThread
cmp eax, ebx
je 0x4026ba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov esi, eax
jmp 0x4026bc
xor esi, esi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
push eax
call fcn.004030d0
push 0x44b7fc
lea ecx, [esp + 0x18]
mov byte [esp + 0x868], 0x12
call sub.MFC42u.DLL_CString::operator_1
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call fcn.00405bd0
mov edi, dword [edi]
mov ecx, esi
push edi
call fcn.0041f6c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x864], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x864], 2
call fcn.00406500
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x864], bl
call fcn.00405dc0
lea ecx, [esp + 0x86c]
mov dword [esp + 0x864], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x85c
ret 4