Function at 0x40ec00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc54
mov eax, dword [0x5f50fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc50], eax
lea eax, [ebp - 0xa2c]
push 0
push eax
mov dword [ebp - 0xc54], ecx
mov dword [ebp - 0xc4c], ebx
mov dword [ebp - 0xc44], 0
call fcn.00568420
push 0x208
lea eax, [ebp - 0xc34]
push 0
push eax
call fcn.00568420
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00568420
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00568420
push 0x5995e4
push edi
push str._s_s
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc3c], 0
push 0x104
push eax
mov dword [ebp - 0xc40], 0
call fcn.00402f80
add esp, 0x44
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc3c]
push eax
push 0
push 0x20006
push 0
push 0x5cfa60
push 0
lea eax, [ebp - 0xa2c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ed4c
push ebx
push str.__s_____1_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402f80
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0056d04f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x18
inc eax
mov dword [ebp - 0xc48], eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push dword [ebp - 0xc3c]
call ebx
push dword [ebp - 0xc3c]
test eax, eax
je 0x40ed64
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x643
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push str.DefaultIcon
push edi
push str._s_s
lea eax, [ebp - 0xc34]
push 0x104
push eax
call fcn.00402f80
add esp, 0x14
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc40]
push eax
push 0
push 0x20006
push 0
push 0x5cfa60
push 0
lea eax, [ebp - 0xc34]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ed4c
push dword [ebp + 0x1c]
lea eax, [ebp - 0x414]
push dword [ebp - 0xc4c]
push str._s__d
push 0x104
push eax
call fcn.00402f80
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0056d04f
add esp, 0x1c
inc eax
mov dword [ebp - 0xc48], eax
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push 0
push 0x5cfa60
push dword [ebp - 0xc40]
call ebx
push dword [ebp - 0xc40]
test eax, eax
jne 0x40eefc
call esi
push 0x208
lea eax, [ebp - 0x824]
mov dword [ebp - 0xc38], 0
push 0
push eax
call fcn.00568420
push dword [ebp - 0xc50]
lea eax, [ebp - 0x824]
push 0x599648
push 0x104
push eax
call fcn.00402f80
add esp, 0x1c
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push 0
push 0x2001f
push 0
push 0x5cfa60
push 0
lea eax, [ebp - 0x824]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ed4c
push 0x208
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00568420
add esp, 0xc
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0x61c]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40eed8
xor eax, eax
mov word [ebp - 0x61c], ax
mov eax, dword [ebp + 0x10]
inc eax
push eax
push edi
push 1
push 0
push 0
push dword [ebp - 0xc38]
mov dword [ebp - 0xc48], eax
call ebx
test eax, eax
je 0x40ef03
push dword [ebp - 0xc38]
call esi
jmp 0x40ed4c
mov ecx, dword [ebp - 0xc54]
lea eax, [ebp - 0x61c]
push eax
push edi
lea eax, [ebp - 0x824]
add ecx, 0xe4a0
push eax
call fcn.0041c5a0
push dword [ebp - 0xc38]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005663a7
mov esp, ebp
pop ebp
ret 0x18