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

Disassembly:
push 0xffffffffffffffff
push 0x437fde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe74
mov eax, dword [0x4400a0]
push ebp
xor ebp, ebp
mov ecx, 1
push esi
push edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x18], eax
mov dword [esp + 0xe88], ecx
mov dword [esp + 0xc], eax
mov ax, word [0x444d64]
mov ecx, 0x81
mov word [esp + 0x68], ax
xor eax, eax
lea edi, [esp + 0x6a]
mov byte [esp + 0xe88], 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0040f930
cmp eax, ebp
je 0x40c6a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp eax, ebp
je 0x40c6a0
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
test eax, eax
je 0x40c6a0
mov eax, str...configdefaultskin
test eax, eax
je 0x40c68c
push str...configdefaultskin
call dword [0x43a224]
push str...configdefaultskin
push eax
lea ecx, [esp + 0x14]
call fcn.0040da40
jmp 0x40cc85
lea ecx, [esp + 0x5c]
push ebx
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
push str.DefaultSkin
push str.Software360Safe
push 0x80000001
call dword [0x43a2dc]
lea ecx, [esp + 0x6c]
push ecx
call fcn.0042a602
add esp, 4
test eax, eax
jne 0x40cb11
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], 0x43a4a4
mov bl, 3
push 0xc
mov byte [esp + 0xe90], bl
call fcn.0042a10b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0xe8c], 4
je 0x40c71f
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.0040dde0
jmp 0x40c721
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xe8c], bl
mov dword [esp + 0x24], eax
jne 0x40c73a
push 0x8007000e
call fcn.004296da
mov bl, 5
push 0xc
mov byte [esp + 0xe90], bl
call fcn.0042a10b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0xe8c], 6
je 0x40c76b
push str.configconfig.xml
mov ecx, eax
call fcn.0040dde0
jmp 0x40c76d
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xe8c], bl
mov dword [esp + 0x18], eax
jne 0x40c786
push 0x8007000e
call fcn.004296da
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
lea edx, [esp + 0x24]
lea ecx, [esp + 0x58]
push edx
call fcn.0040dc80
mov eax, dword [esp + 0x18]
mov edi, dword [0x43a274]
cmp eax, ebp
mov byte [esp + 0xe8c], 0xa
mov dword [esp + 0x4c], 0x43a4a0
je 0x40c87c
mov eax, dword [eax]
cmp eax, ebp
je 0x40c87c
push eax
call edi
cmp eax, ebp
jbe 0x40c87c
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40c7df
mov eax, dword [eax]
jmp 0x40c7e1
xor eax, eax
push eax
call dword [0x43a2d4]
test eax, eax
jne 0x40c7fd
lea eax, [esp + 0x18]
push ebp
push eax
lea ecx, [esp + 0x54]
call fcn.0040e8e0
jmp 0x40c87c
mov edx, dword [esp + 0xe98]
lea ecx, [esp + 0x684]
push 0x400
push ecx
push edx
call dword [0x43a248]
lea eax, [esp + 0x684]
push eax
call dword [0x43a2d8]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40c832
mov eax, dword [eax]
jmp 0x40c834
xor eax, eax
lea ecx, [esp + 0x684]
push eax
lea edx, [esp + 0x688]
push ecx
push edx
call dword [0x43a2bc]
lea eax, [esp + 0x684]
lea ecx, [esp + 0x14]
push eax
call fcn.0040dca0
lea ecx, [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0xe94], 0xb
call fcn.0040e8e0
lea ecx, [esp + 0x14]
call fcn.0040dd90
lea ecx, [esp + 0x18]
call fcn.0040dd90
mov bl, 0xd
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8c], bl
call fcn.0040dd90
push 0xc
call fcn.0042a10b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0xe8c], 0xf
je 0x40c8bf
push str.Root.Config_default
mov ecx, eax
call fcn.0040dde0
jmp 0x40c8c1
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xe8c], bl
mov dword [esp + 0x14], eax
jne 0x40c8da
push 0x8007000e
call fcn.004296da
lea edx, [esp + 0x14]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xe94], 0x10
call fcn.0040f7f0
mov esi, eax
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040d1e0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x30]
push edx
call fcn.0040d250
mov eax, dword [esi + 0xc]
mov esi, 0x43a4a4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
push ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0xe90], 0x12
call fcn.0040d1a0
push ebp
lea ecx, [esp + 0x40]
call fcn.0040d160
lea ecx, [esp + 0x40]
call fcn.0040d280
lea ecx, [esp + 0x3c]
call fcn.0040d240
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], bl
call fcn.0040dd90
push 0xc
call fcn.0042a10b
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0xe8c], 0x13
je 0x40c987
push str.DefaultSkin
mov ecx, eax
call fcn.0040dde0
jmp 0x40c989
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xe8c], bl
mov dword [esp + 0x14], eax
jne 0x40c9a6
push 0x8007000e
call fcn.004296da
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40ca6e
mov eax, dword [eax]
cmp eax, ebp
je 0x40ca6e
push eax
call edi
cmp eax, ebp
jbe 0x40ca6e
lea ecx, [esp + 0x38]
push ecx
call dword [0x43a26c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xe94], 0x15
call fcn.0040dfe0
cmp eax, ebp
jne 0x40ca14
push str.configdefaultskin
lea ecx, [esp + 0x20]
call fcn.0040a520
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8c], 0x14
push ecx
call dword [0x43a268]
cmp eax, ebp
jge 0x40ca6e
jmp 0x40ca68
cmp word [esp + 0x38], 8
je 0x40ca43
push str.configdefaultskin
lea ecx, [esp + 0x20]
call fcn.0040a520
lea edx, [esp + 0x38]
mov byte [esp + 0xe8c], 0x14
push edx
call dword [0x43a268]
cmp eax, ebp
jge 0x40ca6e
jmp 0x40ca68
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040a520
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8c], 0x14
push ecx
call dword [0x43a268]
cmp eax, ebp
jge 0x40ca6e
push eax
call fcn.004296da
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], bl
call fcn.0040dd90
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
push 0x104
push eax
call fcn.0040dc20
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
add ecx, ecx
push ecx
push eax
push 1
push str.DefaultSkin
push str.Software360Safe
push 0x80000001
call dword [0x43a2cc]
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c], 0x43a4a0
call fcn.0040dd90
lea ecx, [esp + 0x54]
call fcn.0040dd90
lea ecx, [esp + 0x50]
call fcn.0040d240
mov dword [esp + 0x28], esi
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0xe90], 0x17
call fcn.0040d1a0
push ebp
lea ecx, [esp + 0x30]
call fcn.0040d160
lea ecx, [esp + 0x30]
call fcn.0040d280
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8c], 2
call fcn.0040d240
mov esi, dword [0x43a224]
mov ecx, 0x4404cc
test ecx, ecx
jne 0x40cb24
xor eax, eax
jmp 0x40cb2b
push 0x4404cc
call esi
push 0x4404cc
push eax
lea ecx, [esp + 0x18]
call fcn.0040da40
lea edx, [esp + 0x6c]
test edx, edx
jne 0x40cb46
xor eax, eax
jmp 0x40cb4d
lea eax, [esp + 0x6c]
push eax
call esi
lea ecx, [esp + 0x6c]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404030
push 1
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.0040d390
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0xe94], 0x18
call fcn.0040d7c0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0xe94], 0x19
call fcn.0042a5cd
add esp, 8
test eax, eax
je 0x40cbf5
push 1
push 0x2f
lea ecx, [esp + 0x2c]
call fcn.0040d390
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0xe94], 0x1a
call fcn.0040d7c0
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042a5cd
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.00403fa0
lea ecx, [esp + 0x24]
mov byte [esp + 0xe8c], 0x19
call fcn.00403fa0
test bl, bl
je 0x40cbf7
mov bl, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0xe8c], 0x18
call fcn.00403fa0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], 2
call fcn.00403fa0
test bl, bl
pop ebx
je 0x40cc32
mov edx, dword [esp + 0xc]
push 1
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.0040d930
mov edx, dword [esp + 0xc]
cmp edx, ebp
je 0x40cc77
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x680]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x684]
push eax
push edx
push ebp
call fcn.0040fa30
add esp, 0x10
test eax, eax
je 0x40cc77
lea ecx, [esp + 0x680]
push ecx
call dword [0x43a2d0]
cmp eax, ebp
jne 0x40cc85
push str...configdefaultskin
lea ecx, [esp + 0x10]
call fcn.0040a520
mov dx, word [0x444d64]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x272]
mov word [esp + 0x270], dx
mov esi, dword [0x43a1f8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x47a]
mov word [esp + 0x478], dx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x270]
push edx
push 0x104
stosw word es:[edi], ax
call esi
mov eax, dword [esp + 0xc]
mov edi, dword [0x43a1fc]
push eax
call edi
lea ecx, [esp + 0x478]
push ecx
push 0x104
call esi
lea edx, [esp + 0x270]
push edx
call edi
mov esi, dword [esp + 0xe90]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0040d2a0
mov dword [esp + 0x64], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0xe88], 1
call fcn.00403fa0
lea ecx, [esp + 0x18]
mov byte [esp + 0xe88], 0
call fcn.00403fa0
mov ecx, dword [esp + 0xe80]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xe80
ret