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

Disassembly:
push 0xffffffffffffffff
push 0x426721
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa74
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
mov esi, 1
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], 0x104
call sub.MFC42u.DLL_CString::CString_1
mov ax, word [0x4306d8]
mov ecx, 0x81
mov word [esp + 0x7c], ax
xor eax, eax
lea edi, [esp + 0x7e]
mov dword [esp + 0xa8c], esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8c], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8c], 3
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [ebx + 0xcc]
lea esi, [ebx + 0xcc]
mov byte [esp + 0xa8c], 4
cmp dword [ecx - 8], ebp
je 0x40b096
push esi
mov esi, dword [esp + 0xa98]
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x34], 1
jmp 0x40b956
call fcn.0040af80
test eax, eax
je 0x40b0cb
push str.configdefaultskin
mov ecx, esi
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esp + 0xa94]
push str.configdefaultskin
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
mov dword [esp + 0x34], 1
jmp 0x40b956
lea edx, [esp + 0x3c]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push str.DefaultSkin
push str.Software360Safe
push 0x80000001
call dword [0x4285d4]
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jne 0x40b56e
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], 0x4286a0
push 0xc
mov byte [esp + 0xa90], 5
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0xa8c], 6
je 0x40b149
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.00401ed0
mov ebp, eax
test ebp, ebp
mov byte [esp + 0xa8c], 5
mov dword [esp + 0x14], ebp
jne 0x40b163
push 0x8007000e
call fcn.004253d0
mov bl, 7
push 0xc
mov byte [esp + 0xa90], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xa8c], 8
je 0x40b194
push str.configconfig.xml
mov ecx, eax
call fcn.00401ed0
jmp 0x40b196
xor eax, eax
test eax, eax
mov byte [esp + 0xa8c], bl
mov dword [esp + 0x1c], eax
jne 0x40b1af
push 0x8007000e
call fcn.004253d0
mov byte [esp + 0xa8c], 9
call sub.MFC42u.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], ebp
call fcn.0040bfd0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xa8c], 0xc
cmp eax, ebx
mov dword [esp + 0x68], 0x4286a8
je 0x40b2ad
mov eax, dword [eax]
cmp eax, ebx
je 0x40b2ad
push eax
call dword [0x42858c]
cmp eax, ebx
jbe 0x40b2ad
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b217
mov eax, dword [eax]
jmp 0x40b219
xor eax, eax
push eax
call dword [0x4285bc]
test eax, eax
jne 0x40b235
lea eax, [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.00401840
jmp 0x40b2ad
lea ecx, [esp + 0x284]
push 0x400
push ecx
push edi
call dword [0x4280c0]
lea edx, [esp + 0x284]
push edx
call dword [0x4285c8]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40b263
mov eax, dword [eax]
jmp 0x40b265
xor eax, eax
push eax
lea eax, [esp + 0x288]
lea ecx, [esp + 0x288]
push eax
push ecx
call dword [0x4285cc]
lea edx, [esp + 0x284]
lea ecx, [esp + 0x10]
push edx
call fcn.00401020
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xa94], 0xd
call fcn.00401840
lea ecx, [esp + 0x10]
call fcn.00401660
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40b2be
call fcn.004016b0
mov dword [esp + 0x1c], ebx
cmp ebp, ebx
mov byte [esp + 0xa8c], 0xf
je 0x40b2d1
mov ecx, ebp
call fcn.004016b0
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xa8c], 0x11
je 0x40b2f9
push str.Root.Config_default
mov ecx, eax
call fcn.00401ed0
jmp 0x40b2fb
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa8c], 0xf
mov dword [esp + 0x10], eax
jne 0x40b315
push 0x8007000e
call fcn.004253d0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0xa94], 0x12
call fcn.0040c560
mov edi, eax
lea ecx, [esp + 0x44]
mov eax, dword [edi + 4]
push eax
call fcn.00405f60
mov ecx, dword [edi + 8]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00405f60
mov edx, dword [edi + 0xc]
mov edi, 0x4286a0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], edi
push ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0xa90], 0x14
call fcn.00405f60
push ebx
lea ecx, [esp + 0x5c]
call fcn.004055f0
lea ecx, [esp + 0x5c]
call fcn.00405fc0
lea ecx, [esp + 0x58]
call fcn.00405fc0
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xa8c], 0xf
cmp ecx, ebx
je 0x40b39f
call fcn.004016b0
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xa8c], 0x15
je 0x40b3c7
push str.DefaultSkin
mov ecx, eax
call fcn.00401ed0
jmp 0x40b3c9
xor eax, eax
cmp eax, ebx
mov byte [esp + 0xa8c], 0xf
mov dword [esp + 0x10], eax
jne 0x40b3e7
push 0x8007000e
call fcn.004253d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40b4b3
mov eax, dword [eax]
cmp eax, ebx
je 0x40b4b3
push eax
call dword [0x42858c]
cmp eax, ebx
jbe 0x40b4b3
lea eax, [esp + 0x54]
push eax
call dword [0x428590]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa94], 0x17
call fcn.0040c4d0
cmp eax, ebx
jne 0x40b459
push str.configdefaultskin
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::operator
lea eax, [esp + 0x54]
mov byte [esp + 0xa8c], 0x16
push eax
call dword [0x428588]
cmp eax, ebx
jge 0x40b4b3
jmp 0x40b4ad
cmp word [esp + 0x54], 8
je 0x40b488
push str.configdefaultskin
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0xa8c], 0x16
push ecx
call dword [0x428588]
cmp eax, ebx
jge 0x40b4b3
jmp 0x40b4ad
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42u.DLL_CString::operator
lea eax, [esp + 0x54]
mov byte [esp + 0xa8c], 0x16
push eax
call dword [0x428588]
cmp eax, ebx
jge 0x40b4b3
push eax
call fcn.004253d0
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8c], 0xf
call fcn.00401660
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x7c]
push ecx
push 0x104
push edx
call fcn.0040ed30
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 0x80000001
mov dword [esp + 0x54], ecx
call dword [0x4285c0]
lea ecx, [esp + 0x74]
mov byte [esp + 0xa8c], 5
mov dword [esp + 0x68], 0x4286a8
call fcn.00401660
lea ecx, [esp + 0x70]
call fcn.00401660
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x40b52e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x40], edi
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa90], 0x19
call fcn.00405f60
push ebx
lea ecx, [esp + 0x48]
call fcn.004055f0
lea ecx, [esp + 0x48]
call fcn.00405fc0
lea ecx, [esp + 0x44]
mov byte [esp + 0xa8c], 4
call fcn.00405fc0
mov ebx, dword [esp + 0x38]
xor ebp, ebp
lea edx, [esp + 0x7c]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CString::operator
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.0040b9c0
push 0x42e450
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0xa98], 0x1a
call sub.MFC42u.DLL_operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::CString
push 1
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0041ed28
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
mov byte [esp + 0xa94], 0x1d
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push ecx
push edx
mov byte [esp + 0xa94], 0x1e
call edi
add esp, 8
cmp eax, ebp
je 0x40b644
push 1
push 0x2f
lea ecx, [esp + 0x18]
call fcn.0041ed28
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
mov byte [esp + 0xa94], 0x1f
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
call edi
add esp, 8
cmp eax, ebp
lea ecx, [esp + 0x24]
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8c], 0x1e
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b646
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8c], 0x1d
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b67c
mov eax, dword [esi]
push 1
mov ecx, esi
mov eax, dword [eax - 8]
dec eax
push eax
call sub.MFC42u.DLL_CString::Delete
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x18]
push eax
push ebp
call sub.MFC42u.DLL_CString::Delete
push 0x42e450
push ebp
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Insert
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x18]
push edx
push ebp
call sub.MFC42u.DLL_CString::Insert
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push eax
push ebp
call sub.MFC42u.DLL_CString::Insert
push 0x42e54c
lea ecx, [esp + 0x1c]
call fcn.0041ec0e
lea ecx, [esp + 0x30]
push esi
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
push 0x42e534
push eax
lea eax, [esp + 0x1c]
mov bl, 0x20
push eax
mov byte [esp + 0xa98], bl
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa90], 0x21
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
push esi
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
push str._skin.jpg
push eax
lea eax, [esp + 0x1c]
mov bl, 0x22
push eax
mov byte [esp + 0xa98], bl
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa90], 0x23
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::CString
push esi
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42u.DLL_operator_2
mov edx, dword [eax]
mov byte [esp + 0xa8c], 0x24
cmp edx, ebp
je 0x40b8e3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x284]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x288]
push eax
push edx
push ebp
call fcn.0040c670
add esp, 0x10
test eax, eax
je 0x40b8e3
mov ebx, dword [0x4285d0]
lea ecx, [esp + 0x284]
push ecx
call ebx
cmp eax, ebp
je 0x40b8e3
mov edx, dword [esp + 0x18]
cmp edx, ebp
jne 0x40b809
xor eax, eax
jmp 0x40b83e
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x284]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x288]
push eax
push edx
push ebp
call fcn.0040c670
add esp, 0x10
test eax, eax
je 0x40b83e
lea ecx, [esp + 0x284]
push ecx
call ebx
cmp eax, ebp
sete al
test al, al
jne 0x40b8e3
mov edx, dword [esp + 0x2c]
cmp edx, ebp
jne 0x40b857
xor eax, eax
jmp 0x40b88c
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x284]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x288]
push eax
push edx
push ebp
call fcn.0040c670
add esp, 0x10
test eax, eax
je 0x40b88c
lea ecx, [esp + 0x284]
push ecx
call ebx
cmp eax, ebp
sete al
test al, al
jne 0x40b8e3
mov edx, dword [esp + 0x28]
cmp edx, ebp
jne 0x40b8a1
xor eax, eax
jmp 0x40b8d6
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x284]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x288]
push eax
push edx
push ebp
call fcn.0040c670
add esp, 0x10
test eax, eax
je 0x40b8d6
lea ecx, [esp + 0x284]
push ecx
call ebx
cmp eax, ebp
sete al
test al, al
jne 0x40b8e3
xor bl, bl
jmp 0x40b8e5
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8c], 0x1c
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40b906
push str.configdefaultskin
mov ecx, esi
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esi]
mov edi, 1
mov dword [esp + 0x50], edi
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push edi
push str.DefaultSkin
push str.Software360Safe
push 0x80000001
mov dword [esp + 0x54], ecx
call dword [0x4285c0]
push esi
mov esi, dword [esp + 0xa98]
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edi
mov byte [esp + 0xa8c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xa84]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa80
ret 4