Function at 0x419d97
Capabilities:
Delete registry key

Disassembly:
push 0x7c
mov eax, 0x4227e9
call fcn.00421242
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x74]
and dword [ebp - 0x88], 0
xor eax, eax
stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 0x7c], ecx
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041a8fb
xor edi, edi
mov esi, eax
push 0x4031e0
mov dword [ebp - 0x78], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x41a10b
push 0x5c
pop eax
mov dword [ebp - 4], edi
cmp ax, word [esi]
jne 0x419df2
add esi, 2
push esi
lea ecx, [ebp - 0x84]
call fcn.004128d9
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.0041a39f
mov esi, eax
test esi, esi
jns 0x419e32
mov ecx, esi
call fcn.00419551
test al, al
je 0x41a0f1
mov dword [ebp - 0x88], ebx
jmp 0x419fa4
push 0x28
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
test eax, eax
jne 0x419e50
mov esi, 0x8007007a
jmp 0x41a0f1
mov edi, ebx
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0041a116
mov esi, eax
test esi, esi
jns 0x419e76
mov ecx, esi
call fcn.00419551
test al, al
je 0x41a0f1
jmp 0x419e81
mov eax, dword [ebp - 0x78]
sub eax, edi
neg eax
sbb eax, eax
and ebx, eax
inc edi
cmp edi, 5
jl 0x419e52
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x80]
push 0x20019
push 0
push 0x403200
push dword [eax + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x419f02
jle 0x419ebc
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x419f67
test dword [eax + 0x1c], 0x40000
je 0x419f67
cmp byte [eax + 0x19], 2
jb 0x419f67
mov ecx, dword [ebp - 0x7c]
push esi
call fcn.0041a8fb
push eax
mov eax, dword [0x42500c]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x33
pop ecx
call fcn.00419724
jmp 0x419f67
push 0
push 0
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
test esi, esi
je 0x419f87
cmp esi, 2
je 0x419f89
test esi, esi
jle 0x419f2b
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x419f67
test dword [eax + 0x1c], 0x40000
je 0x419f67
cmp byte [eax + 0x19], 2
jb 0x419f67
mov ecx, dword [ebp - 0x7c]
push esi
call fcn.0041a8fb
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x42500c]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.00419785
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
je 0x419f7e
push dword [ebp - 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [ebp - 0x78], 0
mov byte [ebp - 4], 0
jmp 0x41a0f1
xor ebx, ebx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x78], 0
je 0x419fa0
push dword [ebp - 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [ebp - 0x78], 0
mov byte [ebp - 4], 0
push 0x5c
push dword [ebp - 0x84]
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x419fc4
mov esi, 0x8000ffff
jmp 0x41a0f1
xor eax, eax
mov word [edi], ax
add edi, 2
and dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [ebp - 0x80]
push 0x20019
push 0
push dword [ebp - 0x84]
push dword [eax + 8]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x41a04e
cmp esi, 2
je 0x41a050
test esi, esi
jle 0x41a008
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a0b5
test dword [eax + 0x1c], 0x40000
je 0x41a0b5
cmp byte [eax + 0x19], 2
jb 0x41a0b5
mov ecx, dword [ebp - 0x7c]
push esi
call fcn.0041a8fb
push eax
mov eax, dword [0x42500c]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x37
pop ecx
call fcn.00419724
jmp 0x41a0b5
xor ebx, ebx
cmp dword [ebp - 0x78], 0
je 0x41a0c0
push 0
push 0
push edi
push dword [ebp - 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov esi, eax
test esi, esi
je 0x41a0be
cmp esi, 2
je 0x41a0c0
test esi, esi
jle 0x41a07c
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x42500c]
cmp eax, 0x42500c
je 0x41a0b5
test dword [eax + 0x1c], 0x40000
je 0x41a0b5
cmp byte [eax + 0x19], 2
jb 0x41a0b5
mov ecx, dword [ebp - 0x7c]
push esi
call fcn.0041a8fb
push eax
mov eax, dword [0x42500c]
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x38
pop ecx
call fcn.00419785
mov byte [ebp - 4], 0xc
jmp 0x419f6b
xor ebx, ebx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x78], 0
je 0x41a0d7
push dword [ebp - 0x78]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x88], 0
mov byte [ebp - 4], 0
jne 0x41a0ec
test ebx, ebx
jne 0x41a0ec
xor esi, esi
jmp 0x41a0f1
mov esi, 0x80070002
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x84]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.00421200
ret 8
mov ecx, 0x8007000e
call fcn.0040713f
int3