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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x41c0b0]
and dword [ebp - 0x74], 0
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b8]
push ebx
mov ebx, dword [ebp + 0x3ac]
mov dword [ebp - 0x80], eax
push esi
mov eax, ebx
mov dword [ebp - 0x78], ecx
call fcn.00403791
mov esi, eax
test esi, esi
jge 0x403909
jmp 0x403cb1
cmp word [ebx], 0x7d
push edi
je 0x403cae
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x419648
push ebx
mov dword [ebp - 0x7c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x403940
test edi, edi
je 0x4039b8
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
cmp dword [ebp + 0x3b4], 0
je 0x4039b8
push 0x5c
mov eax, ebx
call fcn.00403629
test eax, eax
pop ecx
jne 0x403d90
push ebx
call fcn.004042f6
test eax, eax
je 0x403991
mov eax, dword [ebp + 0x3b0]
push ebx
lea ecx, [ebp + 0x3ac]
mov dword [ebp + 0x3ac], eax
call fcn.00404322
test edi, edi
je 0x4039b8
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00404260
jmp 0x403bb2
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4039df
and dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
push 0x419684
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403b14
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.00403791
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x403c9f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
cmp esi, edi
jl 0x403c9f
cmp word [ebx], 0x3d
jne 0x403d4d
cmp dword [ebp + 0x3b4], edi
je 0x403aad
mov eax, dword [ebp + 0x3b0]
mov dword [ebp + 0x3ac], eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3ac]
push eax
push dword [ebp - 0x78]
call fcn.00403dfc
mov esi, eax
cmp esi, edi
jl 0x403d52
cmp word [ebx], 0x7b
jne 0x403a9e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x403a9e
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp + 0x3b4]
push dword [ebp - 0x74]
push ebx
call fcn.004038c6
mov esi, eax
test esi, esi
jl 0x403c9f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
cmp word [ebx], 0x7d
jne 0x403914
jmp 0x403c9f
cmp dword [ebp + 0x3b8], edi
jne 0x403b08
cmp dword [ebp - 0x7c], edi
je 0x403b08
push 0x20006
push edi
push dword [ebp + 0x3b0]
lea eax, [ebp + 0x3ac]
mov dword [ebp + 0x3ac], edi
call fcn.0040422d
cmp eax, edi
jne 0x403d6c
mov edi, dword [ebp + 0x3ac]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403afd
cmp eax, 2
jne 0x403d5a
test edi, edi
je 0x403b08
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00404260
jmp 0x403a94
push 0x5c
mov eax, ebx
call fcn.00403629
test eax, eax
pop ecx
jne 0x403d90
xor esi, esi
cmp dword [ebp + 0x3b4], esi
je 0x403bc1
push 0x2001f
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.0040422d
test eax, eax
je 0x403b85
push 0x20019
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.0040422d
test eax, eax
je 0x403b85
push esi
push 0x2001f
push esi
push esi
push ebx
push dword [ebp + 0x3b0]
xor edi, edi
lea eax, [ebp - 0x74]
call fcn.00403db3
cmp eax, esi
jne 0x403c98
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
cmp word [ebx], 0x3d
jne 0x403a5a
push ebx
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403dfc
mov esi, eax
test esi, esi
jl 0x403c9f
jmp 0x403a5a
cmp dword [ebp + 0x3b8], esi
jne 0x403be5
push 0x20019
push ebx
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x74]
call fcn.0040422d
mov dword [ebp + 0x3ac], eax
jmp 0x403bef
mov dword [ebp + 0x3ac], 2
cmp dword [ebp + 0x3ac], esi
je 0x403c01
mov dword [ebp + 0x3b8], 1
push 0x104
push ebx
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
mov ecx, dword [ebp - 0x78]
mov edi, ebx
call fcn.00404260
mov esi, eax
test esi, esi
jl 0x403c9f
cmp word [ebx], 0x7b
jne 0x403c6d
push dword [ebp + 0x3b8]
mov ecx, dword [ebp - 0x78]
push 0
push dword [ebp - 0x74]
push ebx
call fcn.004038c6
mov esi, eax
test esi, esi
jge 0x403c5d
cmp dword [ebp + 0x3b8], 0
je 0x403c9f
mov ecx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00403791
mov esi, eax
test esi, esi
jl 0x403c9f
cmp dword [ebp + 0x3ac], 2
mov eax, dword [ebp - 0x80]
mov dword [ebp + 0x3b8], eax
je 0x403a9e
mov eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, edi
je 0x403cc8
cmp dword [ebp - 0x80], edi
jne 0x403a9e
call fcn.0040441a
mov esi, eax
cmp dword [ebp - 0x74], 0
je 0x403cae
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp + 0x3a0]
pop esi
pop ebx
call fcn.0040f289
add ebp, 0x3a4
leave
ret 0x10
cmp dword [ebp - 0x80], edi
je 0x403d0b
push dword [ebp - 0x74]
call fcn.004042c1
test eax, eax
je 0x403d0b
lea eax, [ebp + 0x198]
push eax
call fcn.004042f6
test eax, eax
je 0x403a9e
cmp dword [ebp - 0x7c], 0
je 0x403a9e
lea eax, [ebp + 0x198]
push eax
lea ecx, [ebp - 0x74]
call fcn.00404322
jmp 0x403a9e
cmp dword [ebp - 0x74], edi
je 0x403d24
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [ebp - 0x74], edi
jne 0x403da9
cmp dword [ebp - 0x7c], edi
je 0x403a9e
lea eax, [ebp + 0x198]
push eax
push dword [ebp + 0x3b0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403c98
jmp 0x403a9e
cmp dword [ebp - 0x74], edi
jmp 0x403d94
cmp dword [ebp - 0x74], edi
jmp 0x403ca3
call fcn.0040441a
test edi, edi
mov esi, eax
je 0x403c9f
push edi
jmp 0x403d85
call fcn.0040441a
cmp dword [ebp + 0x3ac], edi
mov esi, eax
je 0x403c9f
push dword [ebp + 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c9f
cmp dword [ebp - 0x74], 0
je 0x403d9f
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x403cb0
call fcn.0040441a
jmp 0x403cb0