Function at 0x4f5b20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
push ebx
mov ebx, eax
xor al, al
test ebx, ebx
mov byte [esp + 7], al
je 0x4f5dae
cmp byte [ebx], 0
je 0x4f5dae
push ebp
mov eax, 0x8cccd0
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x20]
call fcn.00412f10
mov eax, dword [esp + 0x20]
cmp byte [eax], 0x2e
je 0x4f5b6c
push 0x2e
xor eax, eax
lea esi, [esp + 0x24]
call fcn.004f3520
lea eax, [esp + 0x1c]
call fcn.00412f10
mov dl, 0x2e
lea esi, [esp + 0x1c]
call fcn.004f3360
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 2
push 0
push 0
push 0
push edx
push 0x80000000
call esi
test eax, eax
mov edi, dword [esp + 0x1c]
jne 0x4f5d75
mov eax, dword [edi - 4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
mov eax, dword [esp + 0x18]
push edi
push 1
push 0
push 0
push eax
call ebp
test eax, eax
mov bl, 1
je 0x4f5bd1
mov bl, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4f5d79
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 6
push 0
push 0
push 0
push edi
push 0x80000000
mov byte [esp + 0x37], 0
call esi
test eax, eax
jne 0x4f5d75
mov ebx, str.Saved_Game
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x8cccd0
call fcn.00412f10
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 4]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x4f5d61
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push eax
push 6
push eax
push eax
push eax
push str.shell
push edx
call esi
test eax, eax
jne 0x4f5d61
mov ecx, dword [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 6
push 0
push 0
push 0
push str.open
push ecx
call esi
test eax, eax
jne 0x4f5d56
push eax
lea edx, [esp + 0x2c]
push edx
push eax
push 2
push eax
push eax
push eax
mov eax, dword [esp + 0x48]
push str.command
push eax
call esi
test eax, eax
jne 0x4f5d4b
mov eax, dword [0x8cccc8]
cmp eax, 0x104
mov esi, 0x8cccd0
mov dword [esp + 0x18], esi
jge 0x4f5cd6
mov edi, dword [0x8ccccc]
mov eax, 0x11f
lea ecx, [esp + 0x18]
call fcn.004f49c0
mov esi, dword [esp + 0x18]
mov dword [esi - 4], edi
mov edi, dword [esp + 0x1c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5cf0
sub eax, edx
mov dword [esi - 4], eax
push str.__FXSLOAD__1_
lea eax, [esp + 0x1c]
call fcn.00412e50
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push 2
push 0
push 0
push ecx
call ebp
test eax, eax
jne 0x4f5d37
push eax
push eax
push eax
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00412fb0
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
call fcn.00412fb0
mov bl, byte [esp + 0x13]
lea eax, [edi - 8]
test eax, eax
pop edi
pop esi
pop ebp
je 0x4f5d93
cmp eax, 0x8cccc8
je 0x4f5d93
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff8
je 0x4f5dac
cmp eax, 0x8cccc8
je 0x4f5dac
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, bl
pop ebx
add esp, 0x24
ret