Function at 0x4031e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4150d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2254
call fcn.0040d870
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x226c], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, esi
mov edi, ecx
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jge 0x40324b
mov dword [esp + 0x226c], 0xffffffff
jmp 0x403893
cmp word [esi], 0x7d
je 0x403873
jmp 0x403260
push str.Delete
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb edi, edi
push str.ForceRemove
inc edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403295
cmp edi, ebx
je 0x4033d3
mov edi, dword [esp + 0xc]
mov eax, esi
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
cmp dword [ebp + 0x10], ebx
je 0x4033d3
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x226c], 1
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x4032f0
cmp cx, 0x5c
je 0x4032e8
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x4032d1
jmp 0x4032f0
cmp eax, ebx
jne 0x40380f
mov edi, 0x418478
mov ecx, dword [edi]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403333
add edi, 4
cmp edi, 0x4184a8
jl 0x4032f5
mov edx, dword [ebp + 0xc]
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401b60
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x10], ebx
je 0x4033c8
mov edi, dword [esp + 0xc]
mov eax, esi
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x40384f
mov ecx, dword [esp + 0xc]
mov ebx, esi
call fcn.00402c60
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x403861
mov byte [esp + 0x226c], al
mov dword [esp + 0x24], eax
xor ebx, ebx
cmp word [esi], 0x7b
jne 0x4036f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4036f0
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
push edx
push eax
push esi
call fcn.004031e0
mov edi, eax
cmp edi, ebx
jl 0x403873
mov edi, dword [esp + 0xc]
mov eax, esi
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
jmp 0x4036f0
mov byte [esp + 0x226c], bl
mov dword [esp + 0x24], ebx
push str.NoRemove
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4033fc
mov edi, dword [esp + 0xc]
mov eax, esi
mov dword [esp + 0x2c], ebx
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
push 0x418448
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403541
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x260]
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
mov edi, dword [esp + 0xc]
mov eax, esi
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
cmp word [esi], 0x3d
jne 0x40381f
cmp dword [ebp + 0x10], ebx
je 0x4034af
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x226c], 2
mov eax, dword [ebp + 0xc]
push esi
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00402770
mov edi, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp edi, ebx
jl 0x4038ae
mov byte [esp + 0x226c], bl
mov dword [esp + 0x40], ebx
jmp 0x403376
cmp dword [ebp + 0x14], ebx
jne 0x403525
cmp dword [esp + 0x2c], ebx
je 0x403525
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov byte [esp + 0x226c], 3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x50]
push edx
mov eax, 0x20006
xor ebx, ebx
call fcn.00401a50
cmp eax, ebx
jne 0x4038eb
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x260]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40350b
cmp eax, 2
jne 0x4038eb
mov byte [esp + 0x226c], bl
cmp edi, ebx
je 0x403521
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [esp + 0xc]
mov ebx, esi
call fcn.00402c60
mov edi, eax
xor ebx, ebx
test edi, edi
js 0x403873
jmp 0x4036f0
movzx ecx, word [esi]
mov eax, esi
cmp cx, bx
je 0x40356f
jmp 0x403550
cmp cx, 0x5c
je 0x403567
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x403550
jmp 0x40356f
cmp eax, ebx
jne 0x40381f
cmp dword [ebp + 0x10], ebx
je 0x4035f9
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x18]
push ecx
mov eax, 0x2001f
mov ebx, esi
call fcn.00401a50
test eax, eax
je 0x4035bb
push edi
lea edx, [esp + 0x18]
push edx
mov eax, 0x20019
call fcn.00401a50
test eax, eax
je 0x4035bb
lea eax, [esp + 0x14]
push eax
mov eax, esi
mov ecx, edi
call fcn.004019d0
test eax, eax
jne 0x403902
mov ebx, dword [esp + 0xc]
mov eax, esi
mov edi, ebx
call fcn.004025c0
mov edi, eax
test edi, edi
js 0x403871
cmp word [esi], 0x3d
jne 0x403374
push esi
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.00402770
mov edi, eax
test edi, edi
js 0x403871
jmp 0x403374
cmp dword [ebp + 0x14], ebx
jne 0x403650
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
mov eax, 0x20019
mov ebx, esi
call fcn.00401a50
xor ebx, ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x403624
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x60]
push 0x104
push ecx
call fcn.00408666
add esp, 0x10
cmp eax, 0x50
ja case.0x403649.1
movzx edx, byte [eax + 0x40395c]
jmp dword [edx*4 + 0x40394c]
mov dword [esp + 0x10], 2
jmp 0x40361d
mov edi, dword [esp + 0xc]
mov eax, esi
call fcn.004025c0
mov edi, eax
cmp edi, ebx
jl 0x403873
mov ecx, dword [esp + 0xc]
mov ebx, esi
call fcn.00402c60
mov edi, eax
test edi, edi
js 0x403871
cmp word [esi], 0x7b
jne 0x4036d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4036d0
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
push eax
push 0
push ecx
push esi
mov ecx, ebx
call fcn.004031e0
mov edi, eax
test edi, edi
jns 0x4036bd
cmp dword [ebp + 0x14], 0
je 0x403871
mov eax, esi
mov edi, ebx
call fcn.004025c0
mov edi, eax
test edi, edi
js 0x403871
cmp dword [esp + 0x10], 2
mov edx, dword [esp + 0x48]
mov dword [ebp + 0x14], edx
je 0x4036ee
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4036ff
test edx, edx
je 0x40391f
xor ebx, ebx
cmp word [esi], 0x7d
jne 0x403260
jmp 0x403873
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x403734
mov ecx, ebx
call fcn.00402c10
test eax, eax
je 0x403734
lea ebx, [esp + 0x58]
call fcn.00402bd0
test eax, eax
je 0x4036ee
cmp dword [esp + 0x2c], 0
je 0x4036ee
mov eax, ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00401b60
jmp 0x4036ee
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40376a
mov dword [esp + 0x10], 0
jmp 0x403778
xor edx, edx
cmp edx, dword [esp + 0x10]
sbb eax, eax
neg eax
mov dword [esp + 0x10], eax
xor eax, eax
test ebx, ebx
je 0x40378d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
test eax, eax
jne 0x403902
cmp dword [esp + 0x2c], eax
je 0x4036ee
cmp dword [esp + 0x10], eax
jne 0x4036ee
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x226c], 4
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea ebx, [esp + 0x58]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
call fcn.004018f0
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp eax, ebx
jne 0x40392b
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x30]
call fcn.004018d0
mov esi, dword [ebp + 8]
jmp 0x4036ee
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x20]
call fcn.004018d0
mov dword [esp + 0x226c], 0xffffffff
lea esi, [esp + 0x14]
call fcn.004018d0
mov eax, 0x80020009
mov ecx, dword [esp + 0x2264]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x20]
call fcn.004018d0
jmp 0x403873
mov byte [esp + 0x226c], al
lea esi, [esp + 0x20]
call fcn.004018d0
xor ebx, ebx
mov dword [esp + 0x226c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x403891
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, edi
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x2264]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x3c]
call fcn.004018d0
mov dword [esp + 0x226c], 0xffffffff
lea esi, [esp + 0x14]
call fcn.004018d0
mov ecx, dword [esp + 0x2264]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401500
mov edi, eax
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x4c]
jmp 0x40386c
call fcn.00401500
mov edi, eax
jmp 0x4038be
push 0x8007000e
call fcn.00401080
push 0x80070057
call fcn.00401080
call fcn.00401500
mov edi, eax
jmp 0x403871
call fcn.00401500
mov edi, eax
mov byte [esp + 0x226c], bl
lea esi, [esp + 0x30]
jmp 0x40386c
push 0x80004005
call fcn.00401080
pop edx
inc eax
add byte [ebx], cl
cmp dword [eax], eax
adc eax, 0x42004039
cmp dword [eax], eax
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3