Function at 0x5a25c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24c], ecx
call fcn.005a31c0
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x26c], 0
cmp dword [ebp - 0x294], 0
jne 0x5a2607
mov eax, dword [ebp - 0x26c]
jmp 0x5a2d80
mov dword [ebp - 0x268], 0
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
jne 0x5a2a25
push 0x20a
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.0063a460
add esp, 0xc
mov dword [ebp - 0x270], 0
xor edx, edx
mov byte [ebp - 0x24d], dl
lea eax, [ebp - 0x298]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x24d]
call fcn.005a5ff0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
jne 0x5a2a25
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2d4], 0x104
lea ecx, [ebp - 0x2d4]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x2ec]
push eax
push 0
push str.Path
mov ecx, dword [ebp - 0x298]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x270], eax
mov edx, dword [ebp - 0x298]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004219c0
xor ecx, ecx
mov byte [ebp - 0x24e], cl
lea ecx, [ebp - 0x24e]
call fcn.005a56b0
push eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x248]
push eax
sub esp, 0x18
mov ecx, esp
lea edx, [ebp - 0x210]
push edx
call fcn.004219c0
call fcn.00606b1a
add esp, 0x28
movzx eax, al
test eax, eax
je 0x5a2a1a
movzx ecx, word [ebp - 0x248]
cmp ecx, 2
jg 0x5a27c8
movzx edx, word [ebp - 0x248]
imul eax, edx, 0xf4240
movzx ecx, word [ebp - 0x25c]
imul edx, ecx, 0x186a0
add eax, edx
movzx ecx, word [ebp - 0x264]
imul edx, ecx, 0x2710
add eax, edx
movzx ecx, word [ebp - 0x260]
add eax, ecx
mov dword [ebp - 0x2f0], eax
movzx edx, word [ebp - 0x248]
imul eax, edx, 0xf4240
add eax, 0x497fb
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f0]
cmp ecx, dword [ebp - 0x2f4]
jae 0x5a27c8
mov edx, dword [ebp - 0x24c]
mov dword [edx], 1
mov eax, dword [ebp - 0x24c]
mov dword [eax + 4], 1
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx], 0
jne 0x5a2a1a
mov edx, dword [ebp - 0x24c]
mov dword [edx], 2
movzx eax, word [ebp - 0x248]
imul ecx, eax, 0xf4240
movzx edx, word [ebp - 0x25c]
imul eax, edx, 0x186a0
add ecx, eax
movzx edx, word [ebp - 0x264]
imul eax, edx, 0x2710
add ecx, eax
movzx edx, word [ebp - 0x260]
add ecx, edx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x29c], 0x2650aa
cmp dword [ebp - 0x274], 0x27b064
jae 0x5a284e
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x29c]
je 0x5a284e
mov ecx, dword [ebp - 0x24c]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x274]
cmp edx, dword [ebp - 0x29c]
jne 0x5a2a1a
push str.updatecfg.ini
lea ecx, [ebp - 0x228]
call fcn.0047d5c0
lea ecx, [ebp - 0x228]
call fcn.00424f40
push eax
lea ecx, [ebp - 0x2fc]
call fcn.005a4f20
push 0
push 0x6a5d00
push str.DefaultSkin.uiz
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.005a6650
lea ecx, [ebp - 0x278]
call fcn.0040dd70
movzx ecx, al
test ecx, ecx
jne 0x5a2a04
lea ecx, [ebp - 0x2b0]
call fcn.00421b20
lea edx, [ebp - 0x2b0]
push edx
push 0x2e
lea ecx, [ebp - 0x278]
call fcn.00422c50
push eax
lea ecx, [ebp - 0x240]
call fcn.004219c0
push eax
call fcn.00606914
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.00421c50
lea ecx, [ebp - 0x2b0]
call fcn.004bafc0
cmp eax, 4
jne 0x5a29f9
lea eax, [ebp - 0x2b4]
push eax
push 0
lea ecx, [ebp - 0x2b0]
call fcn.004b9ab0
push eax
call fcn.00606f6a
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5a29f9
lea edx, [ebp - 0x2b8]
push edx
push 1
lea ecx, [ebp - 0x2b0]
call fcn.004b9ab0
push eax
call fcn.00606f6a
add esp, 8
movzx eax, al
test eax, eax
je 0x5a29f9
lea ecx, [ebp - 0x2bc]
push ecx
push 2
lea ecx, [ebp - 0x2b0]
call fcn.004b9ab0
push eax
call fcn.00606f6a
add esp, 8
movzx edx, al
test edx, edx
je 0x5a29f9
lea eax, [ebp - 0x2c0]
push eax
push 3
lea ecx, [ebp - 0x2b0]
call fcn.004b9ab0
push eax
call fcn.00606f6a
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x5a29f9
imul edx, dword [ebp - 0x2b4], 0xf4240
imul eax, dword [ebp - 0x2b8], 0x186a0
add edx, eax
imul ecx, dword [ebp - 0x2bc], 0x2710
add edx, dword [ebp - 0x2c0]
add ecx, edx
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c8], 0x2c6b25
mov edx, dword [ebp - 0x2c4]
cmp edx, dword [ebp - 0x2c8]
jae 0x5a29f9
mov eax, dword [ebp - 0x24c]
mov dword [eax + 4], 1
lea ecx, [ebp - 0x2b0]
call fcn.004cca10
lea ecx, [ebp - 0x278]
call fcn.00413870
lea ecx, [ebp - 0x2fc]
call fcn.005a4fb0
lea ecx, [ebp - 0x228]
call fcn.00421c50
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x258], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x2cc], 4
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2d0], 4
xor eax, eax
mov byte [ebp - 0x24f], al
lea ecx, [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x2d0]
push eax
push str.AutoReplaceSysWp
lea ecx, [ebp - 0x24f]
call fcn.005a5d00
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
jne 0x5a2ac8
cmp dword [ebp - 0x2a0], 0
jne 0x5a2ac8
mov dword [ebp - 0x26c], 1
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx + 4], 1
je 0x5a2ae0
mov dword [ebp - 0x284], 0x10
jmp 0x5a2af5
mov dword [ebp - 0x26c], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x284], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x27c], edx
lea eax, [ebp - 0x284]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx], 1
jne 0x5a2ced
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x268], edx
push 0xa08
call fcn.006135e5
add esp, 4
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x5a2b54
mov ecx, dword [ebp - 0x2a4]
call fcn.005a4f50
mov dword [ebp - 0x288], eax
jmp 0x5a2b5e
mov dword [ebp - 0x288], 0
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x244], eax
push 0x104
mov ecx, dword [ebp - 0x268]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x200
mov eax, dword [ebp - 0x268]
add eax, 0x608
push eax
mov ecx, dword [ebp - 0x244]
add ecx, 0x608
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x200
mov edx, dword [ebp - 0x268]
add edx, 0x208
push edx
mov eax, dword [ebp - 0x244]
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x280], 0xa08
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x284], 1
cmp dword [ebp + 8], 0
jne 0x5a2ced
push 0xc
call fcn.006135e5
add esp, 4
mov dword [ebp - 0x2d8], eax
mov edx, dword [ebp - 0x2d8]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x280]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x284]
mov dword [edx], eax
push 0xa08
call fcn.006135e5
add esp, 4
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
je 0x5a2c5d
mov ecx, dword [ebp - 0x28c]
call fcn.005a4f50
mov dword [ebp - 0x290], eax
jmp 0x5a2c67
mov dword [ebp - 0x290], 0
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x258], ecx
push 0x104
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x200
mov ecx, dword [ebp - 0x244]
add ecx, 0x608
push ecx
mov edx, dword [ebp - 0x258]
add edx, 0x608
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x200
mov eax, dword [ebp - 0x244]
add eax, 0x208
push eax
mov ecx, dword [ebp - 0x258]
add ecx, 0x208
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x258]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x254]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x4a
mov eax, dword [ebp - 0x294]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x244], 0
je 0x5a2d2b
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x2dc], ecx
push 0xa08
mov edx, dword [ebp - 0x2dc]
push edx
call fcn.00613304
add esp, 8
cmp dword [ebp - 0x258], 0
je 0x5a2d54
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x2e0], eax
push 0xa08
mov ecx, dword [ebp - 0x2e0]
push ecx
call fcn.00613304
add esp, 8
cmp dword [ebp - 0x254], 0
je 0x5a2d7a
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x2e4], edx
push 0xc
mov eax, dword [ebp - 0x2e4]
push eax
call fcn.00613304
add esp, 8
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 8