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

Disassembly:
push 0xffffffffffffffff
push 0x4593f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov edi, 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], 0x104
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x473258]
mov dword [esp + 0xa84], edi
mov word [esp + 0x74], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
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 [esi + 0x124]
lea ebp, [esi + 0x124]
mov byte [esp + 0xa84], 4
cmp dword [ecx - 8], ebx
je 0x403e52
mov esi, dword [esp + 0xa8c]
push ebp
mov ecx, esi
call fcn.004562c0
mov dword [esp + 0x2c], 1
jmp 0x40467e
mov ecx, esi
call fcn.00405d20
test eax, eax
je 0x403e89
push 0x46d98c
mov ecx, ebp
call fcn.00456320
mov esi, dword [esp + 0xa8c]
push 0x46d98c
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x2c], 1
jmp 0x40467e
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
je 0x403f10
lea eax, [esp + 0x74]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_1
push ecx
mov byte [esp + 0xa88], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.miniui.xml
push eax
push ecx
call sub.MFC42u.DLL_operator
call fcn.00421e30
add esp, 4
cmp eax, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 4
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x404377
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], 0x460e94
push 0xc
mov byte [esp + 0xa88], 6
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0xa84], 7
je 0x403f56
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.00405f80
mov edi, eax
jmp 0x403f58
xor edi, edi
cmp edi, ebx
mov byte [esp + 0xa84], 6
mov dword [esp + 0x18], edi
jne 0x403f72
push 0x8007000e
call fcn.004589a0
push 0xc
mov byte [esp + 0xa88], 8
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0xa84], 9
je 0x403fa2
push str.configconfig.xml
mov ecx, eax
call fcn.00405f80
jmp 0x403fa4
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa84], 8
mov dword [esp + 0x1c], eax
jne 0x403fbe
push 0x8007000e
call fcn.004589a0
mov byte [esp + 0xa84], 0xa
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], edi
call fcn.00405f10
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa84], 0xd
cmp eax, ebx
mov dword [esp + 0x60], 0x460e90
je 0x4040ba
mov eax, dword [eax]
cmp eax, ebx
je 0x4040ba
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x4040ba
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404024
mov eax, dword [eax]
jmp 0x404026
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404042
lea edx, [esp + 0x1c]
push ebx
push edx
lea ecx, [esp + 0x68]
call fcn.004069f0
jmp 0x4040ba
lea eax, [esp + 0x27c]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x27c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404070
mov eax, dword [eax]
jmp 0x404072
xor eax, eax
push eax
lea edx, [esp + 0x280]
lea eax, [esp + 0x280]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x27c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405e70
lea edx, [esp + 0x10]
push ebx
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8c], 0xe
call fcn.004069f0
lea ecx, [esp + 0x10]
call fcn.00405f30
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4040cb
call fcn.00405fc0
mov dword [esp + 0x1c], ebx
cmp edi, ebx
mov byte [esp + 0xa84], 0x10
je 0x4040de
mov ecx, edi
call fcn.00405fc0
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x12
je 0x404106
push 0x46d8e0
mov ecx, eax
call fcn.00405f80
jmp 0x404108
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x10
mov dword [esp + 0x10], eax
jne 0x404122
push 0x8007000e
call fcn.004589a0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0xa8c], 0x13
call fcn.004078b0
mov esi, eax
lea ecx, [esp + 0x38]
mov edx, dword [esi + 4]
push edx
call fcn.00419cb0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x3c]
push eax
call fcn.00419cb0
mov ecx, dword [esi + 0xc]
mov esi, 0x460e94
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], esi
push ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xa88], 0x15
call fcn.00419cb0
push ebx
lea ecx, [esp + 0x54]
call fcn.00405e20
lea ecx, [esp + 0x54]
call fcn.00405e10
lea ecx, [esp + 0x50]
call fcn.00405e10
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xa84], 0x10
cmp ecx, ebx
je 0x4041ac
call fcn.00405fc0
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x16
je 0x4041d4
push str.DefaultSkin
mov ecx, eax
call fcn.00405f80
jmp 0x4041d6
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa84], 0x10
mov dword [esp + 0x10], eax
jne 0x4041f4
push 0x8007000e
call fcn.004589a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4042c0
mov eax, dword [eax]
cmp eax, ebx
je 0x4042c0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
jbe 0x4042c0
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8c], 0x18
call fcn.004062b0
cmp eax, ebx
jne 0x404266
push 0x46d98c
lea ecx, [esp + 0x24]
call fcn.00456320
lea edx, [esp + 0x4c]
mov byte [esp + 0xa84], 0x17
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x4042c0
jmp 0x4042ba
cmp word [esp + 0x4c], 8
je 0x404295
push 0x46d98c
lea ecx, [esp + 0x24]
call fcn.00456320
lea eax, [esp + 0x4c]
mov byte [esp + 0xa84], 0x17
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x4042c0
jmp 0x4042ba
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
call fcn.00456320
lea edx, [esp + 0x4c]
mov byte [esp + 0xa84], 0x17
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x4042c0
push eax
call fcn.004589a0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 0x10
call fcn.00405f30
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x74]
push eax
push 0x104
push ecx
call fcn.004046e0
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 byte [esp + 0xa84], 6
mov dword [esp + 0x60], 0x460e90
call fcn.00405f30
lea ecx, [esp + 0x68]
call fcn.00405f30
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x40433b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x34], esi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0xa88], 0x1a
call fcn.00405e20
push ebx
lea ecx, [esp + 0x3c]
call fcn.00405e20
lea ecx, [esp + 0x3c]
call fcn.00405e10
lea ecx, [esp + 0x38]
mov byte [esp + 0xa84], 4
call fcn.00405e10
jmp 0x404379
xor ebx, ebx
lea eax, [esp + 0x74]
mov ecx, ebp
push eax
call fcn.00456320
push 1
push 0x5c
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0xa8c], 0x1b
call sub.MFC42u.DLL_CString::Right
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push edx
push eax
mov byte [esp + 0xa8c], 0x1c
call esi
add esp, 8
cmp eax, ebx
je 0x40441a
push 1
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x44]
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0xa8c], 0x1d
call sub.MFC42u.DLL_CString::Right
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push edx
push eax
call esi
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x44]
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa84], 0x1c
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40441c
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa84], 0x1b
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x404453
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.00456320
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 0x46d988
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 0x46d980
lea ecx, [esp + 0x18]
call fcn.004562cc
push str.miniui.xml
lea ecx, [esp + 0x1c]
push ebp
push ecx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa88], 0x1e
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
push str._skin.png
lea edx, [esp + 0x1c]
push ebp
push edx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xa88], 0x1f
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0xa84], 4
call sub.MFC42u.DLL_CString::CString
mov edx, dword [ebp]
test edx, edx
je 0x404632
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.00407ac0
add esp, 0x10
test eax, eax
je 0x404632
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x404632
mov edx, dword [esp + 0x14]
test edx, edx
je 0x404632
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.00407ac0
add esp, 0x10
test eax, eax
je 0x404632
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x404632
mov edx, dword [esp + 0x28]
test edx, edx
je 0x404632
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.00407ac0
add esp, 0x10
test eax, eax
je 0x404632
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
je 0x404632
mov edx, dword [esp + 0x24]
test edx, edx
je 0x404632
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.00407ac0
add esp, 0x10
test eax, eax
je 0x404632
lea ecx, [esp + 0x27c]
push ecx
call esi
test eax, eax
jne 0x40463e
push 0x46d98c
mov ecx, ebp
call fcn.00456320
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 fcn.004562c0
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
mov dword fs:[0], ecx
pop ebx
add esp, 0xa78
ret 4