Function at 0x476350
Capabilities:
Delete registry key
Delete registry value
Read .ini file

Disassembly:
sub esp, 0x81c
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
mov esi, edx
mov eax, dword [esp + 0x830]
push edi
mov dword [esp + 0x14], eax
mov edi, ecx
mov eax, dword [esp + 0x840]
push str.Advapi32.dll
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4763ab
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push str.RegDeleteKeyExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
jne 0x4763c8
test ebx, ebx
je 0x4763c8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
call fcn.0048e880
add esp, 0xc
xor eax, eax
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
lea eax, [esp + 0x20]
push 0x4ded80
push 3
push eax
push 0
push str.Undo
push str.SROPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x20], 0x31
jne 0x476438
cmp dword [esp + 0x83c], 0
je 0x476438
push dword [esp + 0x10]
mov edx, esi
mov ecx, edi
push dword [esp + 0x83c]
push dword [esp + 0x1c]
call fcn.00476610
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0xf013f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4765cf
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4765c7
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esp + 0x18], 0
jne 0x4765c7
cmp dword [esp + 0x14], 0
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4765ac
call esi
lea eax, [esp + 0x28]
test ebp, ebp
je 0x4764e7
push 0
push 0x100
push eax
push edi
call ebp
jmp 0x4764ef
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4765ae
lea ecx, [esp + 0x28]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x800
jae 0x476600
xor ecx, ecx
mov word [esp + eax + 0x28], cx
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ecx
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4765a8
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [esp + 0x18], 0
push dword [esp + 0x10]
jne 0x4765ac
cmp dword [esp + 0x18], 0
jne 0x4765ac
call esi
lea eax, [esp + 0x28]
test ebp, ebp
je 0x476587
push 0
push 0x100
push eax
push edi
call ebp
jmp 0x47658f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
jne 0x476506
jmp 0x4765ae
push dword [esp + 0x10]
call esi
push dword [esp + 0x1c]
call esi
test ebx, ebx
je 0x4765c0
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call eax
mov eax, 1
jmp 0x4765e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4765a8
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4765e5
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call eax
xor eax, eax
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x81c
ret
call fcn.0048da55
int3