Function at 0x402f70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fa8b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.0043eba0
mov eax, dword [0x46d978]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x46d978]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2280], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
push edi
mov ecx, eax
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
push 0x7d
pop eax
cmp word [edi], ax
je 0x4034d3
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x45e794
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403033
test ebx, ebx
je 0x4030e5
mov ecx, dword [esp + 0x14]
push edi
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4030e7
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00402552
test eax, eax
jne 0x4034c5
push edi
call fcn.00402ae9
test eax, eax
je 0x4030a0
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00401eaf
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
test ebx, ebx
je 0x4030da
mov ebx, dword [esp + 0x14]
push edi
mov ecx, ebx
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034bf
push edi
mov ecx, ebx
call fcn.00402b4d
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401d34
test esi, esi
js 0x4034d3
jmp 0x40345d
lea ecx, [esp + 0x1c]
call fcn.00401d34
jmp 0x4030e7
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x403111
push edi
mov ecx, ebx
mov dword [esp + 0x38], esi
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
push 0x45e78c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40322b
lea eax, [esp + 0x26c]
push eax
mov ecx, ebx
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
push edi
mov ecx, ebx
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4034ce
cmp dword [ebp + 0x10], 0
je 0x4031c0
xor eax, eax
inc eax
mov byte [esp + 0x2280], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.004026f7
mov esi, eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x38]
test esi, esi
js 0x403511
mov byte [esp + 0x2280], al
call fcn.00401d34
jmp 0x40345d
cmp dword [ebp + 0x14], 0
jne 0x40321e
cmp dword [esp + 0x34], 0
je 0x40321e
xor eax, eax
push 0x20006
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
call fcn.00401daf
test eax, eax
jne 0x403504
lea eax, [esp + 0x26c]
push eax
push dword [esp + 0x58]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403215
cmp eax, 2
jne 0x403504
lea ecx, [esp + 0x54]
call fcn.00401d34
push edi
mov ecx, ebx
call fcn.00402b4d
jmp 0x4034a8
push 0x5c
pop edx
mov ecx, edi
call fcn.00402552
test eax, eax
jne 0x4034ce
cmp dword [ebp + 0x10], eax
je 0x4032b9
mov esi, dword [esp + 0x18]
push 0x2001f
push edi
push esi
lea ecx, [esp + 0x34]
call fcn.00401daf
test eax, eax
je 0x403284
push 0x20019
push edi
push esi
lea ecx, [esp + 0x34]
call fcn.00401daf
test eax, eax
je 0x403284
sub esp, 0x14
lea ecx, [esp + 0x3c]
push edi
push esi
call fcn.00401d4e
test eax, eax
jne 0x403525
push edi
mov ecx, ebx
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40345d
push edi
xor eax, eax
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.004026f7
mov esi, eax
jmp 0x4030cd
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4032d7
push 0x20019
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.00401daf
mov ebx, eax
jmp 0x4032da
push 2
pop ebx
push 1
pop eax
push 0xffffffffffffffff
test ebx, ebx
cmovne esi, eax
push edi
lea eax, [esp + 0x6c]
push 0x104
push eax
mov dword [ebp + 0x14], esi
call fcn.0042dc37
push eax
call fcn.00401990
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
mov ecx, dword [esp + 0x14]
push edi
call fcn.00402b4d
mov esi, eax
test esi, esi
js 0x4034d3
push 0x7b
pop eax
cmp word [edi], ax
jne 0x403385
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x403335
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x403385
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
push eax
push dword [esp + 0x30]
push edi
call fcn.00402f70
mov esi, eax
test esi, esi
jns 0x403371
cmp dword [ebp + 0x14], 0
je 0x4034d3
mov ecx, dword [esp + 0x14]
push edi
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x4034ae
test ebx, ebx
je 0x4033af
test eax, eax
jne 0x4034ae
mov ecx, ebx
call fcn.00401a09
mov esi, eax
jmp 0x4034d3
test eax, eax
je 0x4033f0
push dword [esp + 0x28]
call fcn.00402b18
test eax, eax
je 0x4033f0
lea eax, [esp + 0x64]
push eax
call fcn.00402ae9
test eax, eax
je 0x4034ae
cmp dword [esp + 0x34], 0
je 0x4034ae
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401eaf
jmp 0x4034ae
push dword [esp + 0x28]
call fcn.00402b18
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.00401d34
test eax, eax
jne 0x403525
cmp dword [esp + 0x34], eax
je 0x4034ae
test ebx, ebx
jne 0x4034ae
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.00401cbb
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
test eax, eax
jne 0x403518
lea ecx, [esp + 0x44]
call fcn.00401d34
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 0x10], 0
je 0x4034ae
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4034ae
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x50]
jne 0x403470
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4034b1
xor eax, eax
push eax
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x30]
push edi
call fcn.00402f70
mov esi, eax
test esi, esi
js 0x4034d3
push edi
mov ecx, ebx
call fcn.004025a7
mov esi, eax
test esi, esi
js 0x4034d3
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x403006
jmp 0x4034d3
lea ecx, [esp + 0x1c]
jmp 0x403511
lea ecx, [esp + 0x1c]
call fcn.00401d34
mov esi, 0x80020009
lea ecx, [esp + 0x28]
call fcn.00401d34
mov eax, esi
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.0042d3d2
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.00401a09
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.00401d34
jmp 0x4034d3
mov ecx, eax
call fcn.00401a09
lea ecx, [esp + 0x44]
jmp 0x40350f
mov ecx, eax
jmp 0x4033a3