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

Disassembly:
sub esp, 0x81c
mov eax, dword [section..data]
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 0x4775ab
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 0x4775c8
test ebx, ebx
je 0x4775c8
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.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
lea eax, [esp + 0x20]
push 0x4e5e28
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 0x477638
cmp dword [esp + 0x83c], 0
je 0x477638
push dword [esp + 0x10]
mov edx, esi
mov ecx, edi
push dword [esp + 0x83c]
push dword [esp + 0x1c]
call fcn.00477810
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 0x4777cf
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 0x4777c7
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 0x4777c7
cmp dword [esp + 0x14], 0
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4777ac
call esi
lea eax, [esp + 0x28]
test ebp, ebp
je 0x4776e7
push 0
push 0x100
push eax
push edi
call ebp
jmp 0x4776ef
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 0x4777ae
lea ecx, [esp + 0x28]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x800
jae 0x477800
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 0x4777a8
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 0x4777ac
cmp dword [esp + 0x18], 0
jne 0x4777ac
call esi
lea eax, [esp + 0x28]
test ebp, ebp
je 0x477787
push 0
push 0x100
push eax
push edi
call ebp
jmp 0x47778f
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 0x477706
jmp 0x4777ae
push dword [esp + 0x10]
call esi
push dword [esp + 0x1c]
call esi
test ebx, ebx
je 0x4777c0
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call eax
mov eax, 1
jmp 0x4777e7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4777a8
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4777e5
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.0048ea75
add esp, 0x81c
ret
call fcn.0048eba6
int3