Function at 0x477b10
Capabilities:
Delete registry key
Query or enumerate registry key
Read .ini file
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x186c
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1864], eax
mov eax, dword [esp + 0x1870]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x30], eax
mov ebp, ecx
mov eax, dword [esp + 0x188c]
push str.Advapi32.dll
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x477b6e
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x1c], eax
push str.RegDeleteKeyExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x477b8d
test ebx, ebx
je 0x477b8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x2760
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push 0
push 0
push 0x1009
push esi
call edi
push 0
push 0
push 0x1004
push esi
call edi
push 0x4d6b88
push 0
push 0x104d
mov dword [0x4d6b8c], eax
mov eax, dword [esp + 0x30]
push esi
mov dword [0x4d6b90], 0
mov dword [0x4d6b9c], eax
call edi
xor eax, eax
mov dword [esp + 0x18], 0
push 0x7fe
push eax
mov word [esp + 0x878], ax
lea eax, [esp + 0x87a]
push eax
call fcn.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x70], ax
push 0x7fe
push eax
lea eax, [esp + 0x7a]
push eax
call fcn.0048fb10
add esp, 0xc
mov dword [esp + 0x20], 0x104
xor ebx, ebx
mov dword [esp + 0x14], ebx
push ebx
push ebx
push 0x1004
push esi
call edi
test eax, eax
je 0x477d98
nop word [eax + eax]
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push ebx
push 0x1073
push esi
mov dword [esp + 0x5c], 0x400
call edi
lea eax, [esp + 0x18]
push eax
push 0x20119
push 0
lea eax, [esp + 0x7c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477e55
xor ebx, ebx
lea eax, [esp + 0x20]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x884]
push eax
push ebx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x477d71
nop
xor eax, eax
inc ebx
push 0x7fe
push eax
mov word [esp + 0x1078], ax
lea eax, [esp + 0x107a]
push eax
call fcn.0048fb10
add esp, 0xc
mov dword [esp + 0x20], 0x104
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x74]
push eax
push 0x4b3544
lea eax, [esp + 0x107c]
push 0x400
push eax
call fcn.0040a420
add esp, 0x14
push 0
push 0
push 0x1004
push esi
call edi
push 0x4d6b88
push 0
mov dword [0x4d6b8c], eax
lea eax, [esp + 0x1078]
push 0x104d
push esi
mov dword [0x4d6b90], 0
mov dword [0x4d6b9c], eax
call edi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x884]
push eax
push ebx
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x477cc0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
push 0
push 0
push 0x1004
inc ebx
push esi
mov dword [esp + 0x24], ebx
call edi
cmp eax, ebx
jne 0x477c50
push 0x4e5e28
push 1
push str.Undo
push str.SROPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x477dda
cmp dword [esp + 0x1888], 0
je 0x477dda
push dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebp
push dword [esp + 0x1888]
push dword [esp + 0x38]
call fcn.00477810
add esp, 0xc
push 0
push 0
push 0x1004
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x477ebe
cmp dword [esp + 0x28], 0
lea eax, [ebx - 1]
je 0x477e6c
mov dword [esp + 0x14], eax
nop
lea ecx, [esp + 0x70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push 0x1073
push esi
mov dword [esp + 0x5c], 0x400
call edi
push 0
push 0x100
lea eax, [esp + 0x78]
push eax
push ebp
call dword [esp + 0x38]
push 0
push dword [esp + 0x18]
push 0x1008
push esi
call edi
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
sub ebx, 1
jne 0x477e00
jmp 0x477ebe
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x477e65
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
xor eax, eax
jmp 0x477f9e
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
push 0x1073
push esi
mov dword [esp + 0x5c], 0x400
call edi
lea eax, [esp + 0x70]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0
push dword [esp + 0x18]
push 0x1008
push esi
call edi
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
sub ebx, 1
jne 0x477e70
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x5c
push 0
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x477f89
lea eax, [esp + 0x70]
sub esi, eax
and esi, 0xfffffffe
cmp esi, 0x800
jae 0x477fb7
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esp + esi + 0x70], ax
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x7c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x477f83
push eax
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push 0
push dword [esp + 0x40]
call edi
cmp dword [esp + 0x30], 0
push dword [esp + 0x14]
jne 0x477f87
cmp dword [esp + 0x30], 0
jne 0x477f87
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x477f75
push 0
push 0x100
lea ecx, [esp + 0x78]
push ecx
push ebp
call eax
jmp 0x477f07
lea eax, [esp + 0x70]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x477f07
push dword [esp + 0x14]
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x477f99
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1874]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x186c
ret
call fcn.0048eba6
int3