Function at 0x404259
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
call fcn.00403e94
mov esi, eax
test esi, esi
jge 0x40428f
lea ecx, [ebp - 4]
call fcn.004047b8
mov eax, esi
jmp 0x404734
push ebx
jmp 0x4043bc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x41147c
push edi
mov dword [ebp - 0xc], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4042c5
test ebx, ebx
je 0x4043da
mov ecx, dword [ebp - 8]
push edi
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
cmp dword [ebp + 0x10], 0
je 0x4043da
and dword [ebp + 8], 0
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x4042ff
cmp cx, 0x5c
je 0x404306
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x4042ef
jmp 0x40430e
test eax, eax
jne 0x40473a
mov esi, 0x411350
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40433e
add esi, 4
cmp esi, 0x411380
jl 0x404313
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040488a
and dword [ebp + 8], 0
test ebx, ebx
je 0x4043cb
mov ecx, dword [ebp - 8]
push edi
call fcn.00403e94
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x404771
mov ecx, dword [ebp - 8]
push edi
call fcn.00404839
mov esi, eax
cmp esi, ebx
jl 0x404771
cmp dword [ebp + 8], ebx
je 0x40437c
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0x7b
jne 0x4043bc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4043bc
mov ecx, dword [ebp - 8]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.00404259
mov esi, eax
test esi, esi
jl 0x404722
mov ecx, dword [ebp - 8]
push edi
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
cmp word [edi], 0x7d
jne 0x404295
jmp 0x404722
cmp dword [ebp + 8], 0
je 0x4043da
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404400
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], eax
push edi
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
push 0x4114b8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4044e0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x424]
push eax
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
mov ecx, dword [ebp - 8]
push edi
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
cmp word [edi], 0x3d
jne 0x404762
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40447d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00404914
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x40478a
jmp 0x40437c
cmp dword [ebp + 0x14], ebx
jne 0x4044ce
cmp dword [ebp - 0xc], ebx
je 0x4044ce
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004047cf
cmp eax, ebx
jne 0x404768
lea eax, [ebp - 0x424]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4044c0
cmp eax, 2
jne 0x404768
cmp dword [ebp + 8], ebx
je 0x4044ce
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push edi
call fcn.00404839
mov esi, eax
cmp esi, ebx
jmp 0x4043b6
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
xor esi, esi
jmp 0x4044fb
cmp cx, 0x5c
je 0x404502
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x4044eb
jmp 0x40450a
cmp eax, esi
jne 0x40474d
cmp dword [ebp + 0x10], esi
je 0x4045bb
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.004047cf
test eax, eax
je 0x404580
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.004047cf
test eax, eax
je 0x404580
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x404781
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x404572
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jne 0x404781
mov ecx, dword [ebp - 8]
push edi
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
cmp word [edi], 0x3d
jne 0x40437c
mov ecx, dword [ebp - 8]
push edi
push 0
lea eax, [ebp - 4]
push eax
call fcn.00404914
mov esi, eax
test esi, esi
jl 0x404722
jmp 0x40437c
cmp dword [ebp + 0x14], esi
jne 0x4045d6
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.004047cf
mov dword [ebp + 8], eax
jmp 0x4045dd
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x4045e9
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 8]
push edi
mov ecx, ebx
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
push edi
mov ecx, ebx
call fcn.00404839
mov esi, eax
test esi, esi
jl 0x404722
cmp word [edi], 0x7b
jne 0x40465b
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 4]
push edi
call fcn.00404259
mov esi, eax
test esi, esi
jge 0x404649
cmp dword [ebp + 0x14], 0
je 0x404722
push edi
mov ecx, ebx
call fcn.00403e94
mov esi, eax
test esi, esi
jl 0x404722
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
je 0x4043bc
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x404682
cmp eax, ebx
jne 0x4043bc
push dword [ebp + 8]
jmp 0x40471a
cmp dword [ebp - 0x10], ebx
je 0x4046db
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00404804
test eax, eax
je 0x4046db
mov ebx, 0x411350
push dword [ebx]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4043bc
add ebx, 4
cmp ebx, 0x411380
jl 0x40469b
cmp dword [ebp - 0xc], 0
je 0x4043bc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 4]
call fcn.0040488a
jmp 0x4043bc
cmp dword [ebp - 4], ebx
je 0x4046f7
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 4], 0
test eax, eax
jne 0x40478f
cmp dword [ebp - 0xc], 0
je 0x4043bc
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4043bc
push eax
call fcn.004047a5
pop ecx
mov esi, eax
cmp dword [ebp - 4], 0
je 0x404731
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40474d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
je 0x40475b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x404733
cmp dword [ebp - 4], 0
jmp 0x404750
push eax
call fcn.004047a5
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x404722
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404722
push eax
call fcn.004047a5
pop ecx
mov esi, eax
cmp dword [ebp - 4], ebx
jmp 0x404726
push eax
call fcn.004047a5
cmp dword [ebp - 4], 0
pop ecx
mov esi, eax
je 0x404731
push dword [ebp - 4]
call ebx
jmp 0x404731