Function at 0x402d60
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dbbb
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.0041d7f0
mov eax, dword [0x42b008]
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 dword [ebp - 0x2224], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40376e
cmp word [ebx], 0x7d
je 0x40375b
nop dword [eax]
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x424fc4
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402e23
test edi, edi
je 0x402f2f
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
cmp dword [ebp + 0x10], 0
je 0x402f2f
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ax, ax
je 0x402e84
cmp ax, 0x5c
je 0x402e7c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x402e61
jmp 0x402e84
test edx, edx
jne 0x403746
mov esi, 0x4274b8
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402ee8
add esi, 4
cmp esi, 0x4274e8
jl 0x402e90
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push ebx
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
call fcn.00401770
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test edi, edi
je 0x402f25
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
push ebx
mov ecx, edi
call fcn.00402790
mov esi, eax
test esi, esi
js 0x40375b
mov dword [ebp - 0x223c], 0
jmp 0x40337e
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x402f5f
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
jmp 0x402f65
mov edi, dword [ebp - 0x2234]
push 0x424fbc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4030dd
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
cmp word [ebx], 0x3d
jne 0x403746
cmp dword [ebp + 0x10], 0
je 0x403036
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov dword [ebp - 0x224c], 0
push eax
mov dword [ebp - 0x2248], 0
call fcn.00402280
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x40375b
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x40337e
cmp dword [ebp + 0x14], 0
jne 0x4030c2
test edi, edi
je 0x4030c2
push 0x20006
push 0
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.004016c0
test eax, eax
jne 0x40372a
mov edi, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4030a3
cmp eax, 2
jne 0x403714
test edi, edi
je 0x4030b8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00402790
mov esi, eax
test esi, esi
js 0x40375b
jmp 0x403708
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x403111
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x403109
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x4030f0
jmp 0x403111
test eax, eax
jne 0x403746
cmp dword [ebp + 0x10], 0
je 0x4033dc
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x403181
cmp dword [esi], 0
je 0x403174
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4031d1
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40317a
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40319c
cmp dword [esi + 4], 0
jne 0x403181
mov eax, 1
jmp 0x40319c
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4031d1
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x4031b1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x403345
jmp 0x4031d7
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x403237
cmp dword [esi], 0
je 0x40322a
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40327f
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403230
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x403252
cmp dword [esi + 4], 0
jne 0x403237
mov eax, 1
jmp 0x403252
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40327f
test edi, edi
je 0x403261
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x403345
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x4032ec
cmp dword [esi], 0
je 0x4032df
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40374d
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4032e5
push 0
push dword [esi]
lea ecx, [ebp - 0x2244]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x403314
cmp dword [esi + 4], 0
jne 0x4032ec
mov eax, 1
jmp 0x403314
lea eax, [ebp - 0x2244]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403752
test edi, edi
je 0x403327
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x403752
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
cmp word [ebx], 0x3d
jne 0x40337e
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00402280
mov esi, eax
test esi, esi
js 0x40375b
cmp word [ebx], 0x7b
jne 0x403708
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403390
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x403708
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00402d60
mov esi, eax
test esi, esi
js 0x40375b
push ebx
mov ecx, edi
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
jmp 0x403708
cmp dword [ebp + 0x14], 0
jne 0x40349c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x403450
cmp dword [esi], 0
je 0x403443
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x403416
lea edi, [eax + 1]
jmp 0x4034a1
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403449
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x40346b
cmp dword [esi + 4], 0
jne 0x403450
mov edi, 1
jmp 0x40346d
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4034a1
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x403484
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
jmp 0x4034a1
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00411f08
push eax
call fcn.004011e0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00402790
mov esi, eax
test esi, esi
js 0x40375b
cmp word [ebx], 0x7b
jne 0x40355d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403506
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40355d
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00402d60
mov esi, eax
test esi, esi
jns 0x403547
cmp dword [ebp - 0x221c], 0
je 0x40375b
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.004020e0
mov esi, eax
test esi, esi
js 0x40375b
cmp edi, 2
je 0x403708
test edi, edi
je 0x40357b
cmp dword [ebp + 0x14], 0
jne 0x403708
mov ecx, edi
jmp 0x403754
cmp dword [ebp + 0x14], 0
je 0x403616
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x403616
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x403616
mov edi, 0x4274b8
nop dword [eax + eax]
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403708
add edi, 4
cmp edi, 0x4274e8
jl 0x4035d0
cmp dword [ebp - 0x2234], 0
je 0x403708
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00401770
jmp 0x403708
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40364f
xor edi, edi
jmp 0x40365b
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x403676
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x403752
cmp dword [ebp - 0x2234], eax
je 0x403708
test edi, edi
jne 0x403708
cmp byte [0x42d054], al
jne 0x4036d3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4036c5
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42d058], eax
mov byte [0x42d054], 1
jmp 0x4036d8
mov eax, dword [0x42d058]
mov byte [0x42d054], 1
jmp 0x4036d8
mov eax, dword [0x42d058]
test eax, eax
je 0x4036f1
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x403704
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x403752
cmp word [ebx], 0x7d
jne 0x402df0
jmp 0x40375b
mov ecx, eax
call fcn.004013c0
mov esi, eax
test edi, edi
je 0x40375b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40375b
mov ecx, eax
call fcn.004013c0
mov esi, eax
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x40375b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40375b
mov esi, 0x80020009
jmp 0x40375b
mov eax, 1
mov ecx, eax
call fcn.004013c0
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x40376c
push eax
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.0040b5ff
mov esp, ebp
pop ebp
ret 0x10