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

Disassembly:
mov eax, 0x186c
call fcn.004a5d20
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 0x4b3264
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 0x4768ce
push 0x4b3264
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x1c], eax
push 0x4b3280
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4768ed
test ebx, ebx
je 0x4768ed
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.0048e770
add esp, 0xc
xor eax, eax
mov word [esp + 0x70], ax
push 0x7fe
push eax
lea eax, [esp + 0x7a]
push eax
call fcn.0048e770
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 0x476af8
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 0x476bb5
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 0x476ad1
nop
xor eax, eax
inc ebx
push 0x7fe
push eax
mov word [esp + 0x1078], ax
lea eax, [esp + 0x107a]
push eax
call fcn.0048e770
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.0040a370
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 0x476a20
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 0x4769b0
push 0x4ded80
push 1
push 0x4ae38c
push 0x4ae378
call dword [sym.imp.kernel32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x476b3a
cmp dword [esp + 0x1888], 0
je 0x476b3a
push dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebp
push dword [esp + 0x1888]
push dword [esp + 0x38]
call fcn.00476570
add esp, 0xc
push 0
push 0
push 0x1004
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x476c1e
cmp dword [esp + 0x28], 0
lea eax, [ebx - 1]
je 0x476bcc
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 0x476b60
jmp 0x476c1e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x476bc5
push eax
mov eax, dword [sym.imp.kernel32.dll_FreeLibrary]
call eax
xor eax, eax
jmp 0x476cfe
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 0x476bd0
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 0x476ce9
lea eax, [esp + 0x70]
sub esi, eax
and esi, 0xfffffffe
cmp esi, 0x800
jae 0x476d17
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 0x476ce3
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 0x476ce7
cmp dword [esp + 0x30], 0
jne 0x476ce7
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x476cd5
push 0
push 0x100
lea ecx, [esp + 0x78]
push ecx
push ebp
call eax
jmp 0x476c67
lea eax, [esp + 0x70]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x476c67
push dword [esp + 0x14]
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x476cf9
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.0048d815
add esp, 0x186c
ret
call fcn.0048d945
int3