Function at 0x409613
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4130d3
mov eax, dword fs:[0]
push eax
mov eax, 0x2264
call fcn.00411f30
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2224], ecx
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c96
jmp 0x409c47
push str.Delete
push edi
mov dword [ebp - 0x2220], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x414aac
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2228], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4096c8
test esi, esi
je 0x409784
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409786
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
call fcn.00408b50
test eax, eax
jne 0x409c86
push edi
call fcn.0040916f
test eax, eax
je 0x40973b
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2254]
push edi
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], esi
call fcn.004084ad
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x224c], esi
cmp dword [ebp - 0x2228], esi
je 0x40977c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004091d3
mov esi, eax
test esi, esi
js 0x409c8b
xor eax, eax
mov dword [ebp - 0x2250], eax
jmp 0x409a1b
mov dword [ebp - 0x2250], esi
jmp 0x409786
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4097b2
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2220], esi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
push 0x414aa4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409909
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409c86
cmp dword [ebp + 0x10], 0
je 0x40986e
mov eax, dword [ebp - 0x2224]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2260], eax
xor eax, eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2260]
push eax
call fcn.00408d1f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x2260], eax
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
test esi, esi
js 0x409c8b
mov byte [ebp - 4], al
mov dword [ebp - 0x225c], eax
jmp 0x409a1b
cmp dword [ebp + 0x14], 0
jne 0x4098ee
cmp dword [ebp - 0x2220], 0
je 0x4098ee
xor eax, eax
lea ecx, [ebp - 0x2240]
push 0x20006
push eax
push dword [ebp - 0x2224]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], eax
call fcn.00402611
test eax, eax
jne 0x409c55
mov esi, dword [ebp - 0x2240]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4098d1
cmp eax, 2
jne 0x409c55
test esi, esi
je 0x4098e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x2240], eax
jmp 0x4098e8
xor eax, eax
mov dword [ebp - 0x223c], eax
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004091d3
mov esi, eax
test esi, esi
js 0x409c8b
jmp 0x409c47
push 0x5c
pop edx
mov ecx, edi
call fcn.00408b50
test eax, eax
jne 0x409c86
cmp dword [ebp + 0x10], eax
je 0x409a76
mov ebx, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.00402611
test eax, eax
je 0x4099d1
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.00402611
test eax, eax
je 0x4099d1
mov ecx, dword [ebp - 0x222c]
lea eax, [ebp - 0x2264]
push eax
xor esi, esi
lea eax, [ebp - 0x2220]
mov dword [ebp - 0x2220], esi
push eax
test ecx, ecx
je 0x409986
sub esp, 0x14
push edi
push ebx
call fcn.00408131
jmp 0x409997
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409c75
mov eax, esi
cmp dword [ebp - 0x2234], eax
je 0x4099b5
push dword [ebp - 0x2234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2220]
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], esi
test eax, eax
jne 0x409c7b
jmp 0x4099d7
mov ebx, dword [ebp - 0x2234]
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
push 0x3d
pop eax
cmp word [edi], ax
jne 0x409a1b
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push edi
push eax
lea eax, [ebp - 0x2234]
push eax
call fcn.00408d1f
mov ebx, dword [ebp - 0x2234]
mov esi, eax
test esi, esi
js 0x409c8b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409c47
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409a2c
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409c47
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00409613
mov esi, eax
test esi, esi
js 0x409c8b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
jmp 0x4098fa
cmp dword [ebp + 0x14], 0
jne 0x409a9b
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2234]
call fcn.00402611
mov ebx, dword [ebp - 0x2234]
jmp 0x409a9e
push 2
pop eax
xor ecx, ecx
mov dword [ebp - 0x2228], eax
push 0xffffffffffffffff
inc ecx
test eax, eax
push edi
cmove ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x2248], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.00402417
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004091d3
mov esi, eax
test esi, esi
js 0x409c8b
push 0x7b
pop eax
cmp word [edi], ax
jne 0x409b61
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x409b0a
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x409b61
push dword [ebp - 0x2248]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.00409613
mov esi, eax
test esi, esi
jns 0x409b4b
cmp dword [ebp - 0x2248], 0
je 0x409c8b
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408bd4
mov esi, eax
test esi, esi
js 0x409c8b
mov eax, dword [ebp - 0x2228]
cmp eax, 2
je 0x409c47
test eax, eax
je 0x409b83
cmp dword [ebp + 0x14], 0
je 0x409c7b
jmp 0x409c47
cmp dword [ebp + 0x14], 0
je 0x409bce
push ebx
call fcn.0040919e
test eax, eax
je 0x409bce
lea eax, [ebp - 0x218]
push eax
call fcn.0040916f
test eax, eax
je 0x409c47
cmp dword [ebp - 0x2220], 0
je 0x409c47
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.004084ad
mov ebx, dword [ebp - 0x2234]
jmp 0x409c47
push ebx
call fcn.0040919e
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x2228], ecx
mov eax, edx
test ebx, ebx
je 0x409bfb
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
xor edx, edx
mov ebx, edx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], edx
test eax, eax
jne 0x409c7b
cmp dword [ebp - 0x2220], eax
je 0x409c47
test ecx, ecx
jne 0x409c47
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2270]
mov dword [ebp - 0x2270], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x226c], edx
mov dword [ebp - 0x2268], edx
call fcn.004083c8
xor ecx, ecx
mov dword [ebp - 0x2270], ecx
test eax, eax
jne 0x409c7b
push 0x7d
pop eax
cmp word [edi], ax
jne 0x40968f
jmp 0x409c8b
mov ecx, eax
call fcn.00408123
cmp dword [ebp - 0x2240], 0
mov esi, eax
je 0x409c8b
push dword [ebp - 0x2240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409c8b
mov ebx, dword [ebp - 0x2234]
mov ecx, eax
call fcn.00408123
mov esi, eax
jmp 0x409c8b
mov esi, 0x80020009
test ebx, ebx
je 0x409c96
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410c00
leave
ret 0x10