Function at 0x402780
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43c76a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa6c
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
mov ebx, 1
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], 0x104
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x44ffe8]
mov ecx, 0x81
mov word [esp + 0x74], ax
xor eax, eax
lea edi, [esp + 0x76]
mov dword [esp + 0xa84], ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x28]
mov byte [esp + 0xa84], 2
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x24]
mov byte [esp + 0xa84], 3
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [ebp + 0xcc]
add ebp, 0xcc
mov byte [esp + 0xa84], 4
cmp dword [ecx - 8], esi
je 0x40283e
mov esi, dword [esp + 0xa8c]
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x2c], ebx
jmp 0x403005
call fcn.004057a0
test eax, eax
je 0x40286f
push 0x44b8fc
mov ecx, ebp
call fcn.00439862
mov esi, dword [esp + 0xa8c]
push 0x44b8fc
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x2c], ebx
jmp 0x403005
lea edx, [esp + 0x30]
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x402d04
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], 0x441b3c
mov bl, 5
push 0xc
mov byte [esp + 0xa88], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
mov byte [esp + 0xa84], 6
je 0x4028f0
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.004059d0
mov edi, eax
jmp 0x4028f2
xor edi, edi
cmp edi, esi
mov byte [esp + 0xa84], bl
mov dword [esp + 0x1c], edi
jne 0x40290b
push 0x8007000e
call fcn.0043bfa0
mov bl, 7
push 0xc
mov byte [esp + 0xa88], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, esi
mov byte [esp + 0xa84], 8
je 0x40293c
push str.configconfig.xml
mov ecx, eax
call fcn.004059d0
jmp 0x40293e
xor eax, eax
cmp eax, esi
mov byte [esp + 0xa84], bl
mov dword [esp + 0x18], eax
jne 0x402957
push 0x8007000e
call fcn.0043bfa0
mov byte [esp + 0xa84], 9
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
call fcn.00405960
mov eax, dword [esp + 0x18]
mov byte [esp + 0xa84], 0xc
cmp eax, ebx
mov dword [esp + 0x60], 0x441b38
je 0x402a55
mov eax, dword [eax]
cmp eax, ebx
je 0x402a55
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x402a55
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4029bf
mov eax, dword [eax]
jmp 0x4029c1
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x4029dd
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x68]
call fcn.004065b0
jmp 0x402a55
lea ecx, [esp + 0x27c]
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x27c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x402a0b
mov eax, dword [eax]
jmp 0x402a0d
xor eax, eax
push eax
lea eax, [esp + 0x280]
lea ecx, [esp + 0x280]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x27c]
lea ecx, [esp + 0x10]
push edx
call fcn.004058c0
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8c], 0xd
call fcn.004065b0
lea ecx, [esp + 0x10]
call fcn.00405980
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x402a66
call fcn.00405a10
mov dword [esp + 0x18], ebx
cmp edi, ebx
mov byte [esp + 0xa84], 0xf
je 0x402a79
mov ecx, edi
call fcn.00405a10
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x11
je 0x402aa1
push 0x44b850
mov ecx, eax
call fcn.004059d0
jmp 0x402aa3
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa84], 0xf
mov dword [esp + 0x10], eax
jne 0x402abd
push 0x8007000e
call fcn.0043bfa0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8c], 0x12
call fcn.00407460
mov esi, eax
lea ecx, [esp + 0x38]
mov eax, dword [esi + 4]
push eax
call fcn.00405870
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x40]
call fcn.00405870
mov edx, dword [esi + 0xc]
mov esi, 0x441b3c
mov dword [esp + 0x40], edx
mov dword [esp + 0x4c], esi
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa88], 0x14
call fcn.00405840
push ebx
lea ecx, [esp + 0x54]
call fcn.00405840
lea ecx, [esp + 0x54]
call fcn.00405830
lea ecx, [esp + 0x50]
call fcn.00405830
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 0xf
call fcn.00405980
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x15
je 0x402b6b
push str.DefaultSkin
mov ecx, eax
call fcn.004059d0
jmp 0x402b6d
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa84], 0xf
mov dword [esp + 0x10], eax
jne 0x402b8b
push 0x8007000e
call fcn.0043bfa0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402c57
mov eax, dword [eax]
cmp eax, ebx
je 0x402c57
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x402c57
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 0x17
call fcn.00405e70
cmp eax, ebx
jne 0x402bfd
push 0x44b8fc
lea ecx, [esp + 0x24]
call fcn.00439862
lea eax, [esp + 0x4c]
mov byte [esp + 0xa84], 0x16
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x402c57
jmp 0x402c51
cmp word [esp + 0x4c], 8
je 0x402c2c
push 0x44b8fc
lea ecx, [esp + 0x24]
call fcn.00439862
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa84], 0x16
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x402c57
jmp 0x402c51
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x20]
push edx
call fcn.00439862
lea eax, [esp + 0x4c]
mov byte [esp + 0xa84], 0x16
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x402c57
push eax
call fcn.0043bfa0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 0xf
call fcn.00405980
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x74]
push ecx
push 0x104
push edx
call fcn.00403070
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push 1
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
mov dword [esp + 0x48], ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x60], 0x441b38
call fcn.00405980
lea ecx, [esp + 0x68]
call fcn.00405980
lea ecx, [esp + 0x64]
call fcn.00405830
mov dword [esp + 0x34], esi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0xa88], 0x19
call fcn.00405840
push ebx
lea ecx, [esp + 0x3c]
call fcn.00405840
lea ecx, [esp + 0x3c]
call fcn.00405830
lea ecx, [esp + 0x38]
mov byte [esp + 0xa84], 4
call fcn.00405830
mov ebx, 1
lea eax, [esp + 0x74]
mov ecx, ebp
push eax
call fcn.00439862
push ebx
push 0x5c
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, ebp
mov byte [esp + 0xa8c], 0x1a
call sub.MFC42u.DLL_CString::Right
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push edx
push eax
mov byte [esp + 0xa8c], 0x1b
call esi
add esp, 8
test eax, eax
je 0x402da1
push ebx
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x44]
push ebx
push ecx
mov ecx, ebp
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::Right
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
call esi
add esp, 8
lea ecx, [esp + 0x44]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 0x1b
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x402da3
mov bl, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa84], 0x1a
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x402dda
mov ecx, dword [ebp]
push 1
mov eax, dword [ecx - 8]
mov ecx, ebp
dec eax
push eax
call sub.MFC42u.DLL_CString::Delete
lea edx, [esp + 0x74]
lea ecx, [esp + 0x14]
push edx
call fcn.00439862
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x14]
push eax
push 0
call sub.MFC42u.DLL_CString::Delete
push 0x44b8f8
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Insert
lea eax, [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
push 0
call sub.MFC42u.DLL_CString::Insert
push 0x44b8f0
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_1
push 0x44b7fc
lea ecx, [esp + 0x20]
push ebp
push ecx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa88], 0x1d
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
push str._skin.png
lea edx, [esp + 0x20]
push ebp
push edx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xa88], 0x1e
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp]
test edx, edx
je 0x402fb9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x27c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x280]
push eax
push edx
push 0
call fcn.00407680
add esp, 0x10
test eax, eax
je 0x402fb9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x402fb9
mov edx, dword [esp + 0x14]
test edx, edx
je 0x402fb9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x27c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x280]
push eax
push edx
push 0
call fcn.00407680
add esp, 0x10
test eax, eax
je 0x402fb9
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x402fb9
mov edx, dword [esp + 0x28]
test edx, edx
je 0x402fb9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x27c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x280]
push eax
push edx
push 0
call fcn.00407680
add esp, 0x10
test eax, eax
je 0x402fb9
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x402fb9
mov edx, dword [esp + 0x24]
test edx, edx
je 0x402fb9
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x27c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x280]
push eax
push edx
push 0
call fcn.00407680
add esp, 0x10
test eax, eax
je 0x402fb9
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
jne 0x402fc5
push 0x44b8fc
mov ecx, ebp
call fcn.00439862
mov eax, dword [ebp]
mov edi, 1
mov dword [esp + 0x48], edi
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push edi
push str.DefaultSkin
push str.Software360Safe
push SysReAllocString
mov dword [esp + 0x48], ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, dword [esp + 0xa8c]
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa84], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa84], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa84], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa84], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xa7c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa78
ret 4