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

Disassembly:
mov eax, 0x186c
call fcn.004a5e30
mov eax, dword [0x4c4004]
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 0x47696e
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 0x47698d
test ebx, ebx
je 0x47698d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x2760
push dword [0x4def88]
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 0x4cfb48
push 0
push 0x104d
mov dword [0x4cfb4c], eax
mov eax, dword [esp + 0x30]
push esi
mov dword [0x4cfb50], 0
mov dword [0x4cfb5c], 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.0048e880
add esp, 0xc
xor eax, eax
mov word [esp + 0x70], ax
push 0x7fe
push eax
lea eax, [esp + 0x7a]
push eax
call fcn.0048e880
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 0x476b98
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 0x476c55
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 0x476b71
nop
xor eax, eax
inc ebx
push 0x7fe
push eax
mov word [esp + 0x1078], ax
lea eax, [esp + 0x107a]
push eax
call fcn.0048e880
add esp, 0xc
mov dword [esp + 0x20], 0x104
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x74]
push eax
push 0x4ad304
lea eax, [esp + 0x107c]
push 0x400
push eax
call fcn.0040a3c0
add esp, 0x14
push 0
push 0
push 0x1004
push esi
call edi
push 0x4cfb48
push 0
mov dword [0x4cfb4c], eax
lea eax, [esp + 0x1078]
push 0x104d
push esi
mov dword [0x4cfb50], 0
mov dword [0x4cfb5c], 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 0x476ac0
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 0x476a50
push 0x4ded80
push 1
push str.Undo
push str.SROPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x476bda
cmp dword [esp + 0x1888], 0
je 0x476bda
push dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebp
push dword [esp + 0x1888]
push dword [esp + 0x38]
call fcn.00476610
add esp, 0xc
push 0
push 0
push 0x1004
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x476cbe
cmp dword [esp + 0x28], 0
lea eax, [ebx - 1]
je 0x476c6c
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 0x476c00
jmp 0x476cbe
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x476c65
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
xor eax, eax
jmp 0x476d9e
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 0x476c70
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 0x476d89
lea eax, [esp + 0x70]
sub esi, eax
and esi, 0xfffffffe
cmp esi, 0x800
jae 0x476db7
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 0x476d83
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 0x476d87
cmp dword [esp + 0x30], 0
jne 0x476d87
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x476d75
push 0
push 0x100
lea ecx, [esp + 0x78]
push ecx
push ebp
call eax
jmp 0x476d07
lea eax, [esp + 0x70]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x476d07
push dword [esp + 0x14]
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x476d99
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.0048d925
add esp, 0x186c
ret
call fcn.0048da55
int3