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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41631c
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00414030
mov eax, dword [0x41e008]
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 - 0x2230], 0
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov dword [ebp - 4], 0
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
cmp word [ebx], 0x7d
je 0x4122ba
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 0x417510
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x411813
test edi, edi
je 0x411941
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
cmp dword [ebp + 0x10], 0
je 0x411941
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov byte [ebp - 4], 1
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x411884
mov ecx, eax
cmp cx, 0x5c
je 0x41187c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x411861
jmp 0x411884
test edx, edx
jne 0x41220f
mov esi, 0x418250
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4118f2
add esi, 4
cmp esi, 0x418280
jl 0x411890
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.0040fe80
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
test edi, edi
je 0x411933
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x412227
push ebx
mov ecx, edi
call fcn.00411130
mov esi, eax
test esi, esi
js 0x412227
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
jmp 0x411dfc
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x411971
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
jmp 0x411977
mov edi, dword [ebp - 0x2234]
push 0x417508
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x411b1d
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
cmp word [ebx], 0x3d
jne 0x41221d
cmp dword [ebp + 0x10], 0
je 0x411a6a
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x2248], 0
push eax
mov dword [ebp - 0x2244], 0
call fcn.00410ba0
mov esi, eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
test esi, esi
js 0x41223a
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x411dfc
cmp dword [ebp + 0x14], 0
jne 0x411b02
test edi, edi
je 0x411b02
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2258]
push 0x20006
push 0
push dword [ebp - 0x2220]
call fcn.0040fdd0
test eax, eax
jne 0x412278
mov edi, dword [ebp - 0x2258]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x411adf
cmp eax, 2
jne 0x41224a
mov byte [ebp - 4], 0
test edi, edi
je 0x411af8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00411130
mov esi, eax
test esi, esi
js 0x4122ba
jmp 0x412200
movzx eax, word [ebx]
mov edx, ebx
test ax, ax
je 0x411b53
mov ecx, eax
nop dword [eax]
cmp cx, 0x5c
je 0x411b4b
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x411b30
jmp 0x411b53
test edx, edx
jne 0x41221d
cmp dword [ebp + 0x10], 0
je 0x411e5c
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x411bc3
cmp dword [esi], 0
je 0x411bb6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411c27
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411bbc
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x411bde
cmp dword [esi + 4], 0
jne 0x411bc3
mov eax, 1
jmp 0x411bde
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 0x411c27
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x411bfd
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x411dc3
jmp 0x411c2d
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x411c8d
cmp dword [esi], 0
je 0x411c80
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411ce9
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411c86
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x411ca8
cmp dword [esi + 4], 0
jne 0x411c8d
mov eax, 1
jmp 0x411ca8
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 0x411ce9
test edi, edi
je 0x411cc1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x411dc3
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x411d56
cmp dword [esi], 0
je 0x411d49
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4122ac
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411d4f
push 0
push dword [esi]
lea ecx, [ebp - 0x2268]
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 0x411d7e
cmp dword [esi + 4], 0
jne 0x411d56
mov eax, 1
jmp 0x411d7e
lea eax, [ebp - 0x2268]
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 0x4122b1
test edi, edi
je 0x411d9b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x4122b1
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
cmp word [ebx], 0x3d
jne 0x411dfc
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.00410ba0
mov esi, eax
test esi, esi
js 0x4122ba
cmp word [ebx], 0x7b
jne 0x412200
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e10
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x412200
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.00411750
mov esi, eax
test esi, esi
js 0x4122ba
push ebx
mov ecx, edi
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
jmp 0x412200
cmp dword [ebp + 0x14], 0
jne 0x411f30
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x411ed0
cmp dword [esi], 0
je 0x411ec3
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x411e96
lea edi, [eax + 1]
jmp 0x411f35
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411ec9
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x411eeb
cmp dword [esi + 4], 0
jne 0x411ed0
mov edi, 1
jmp 0x411eed
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 0x411f35
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x411f0e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [ebp - 0x2230], 0
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
jmp 0x411f35
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.0040f9b0
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00411130
mov esi, eax
test esi, esi
js 0x4122ba
cmp word [ebx], 0x7b
jne 0x411ff7
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411fa0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x411ff7
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.00411750
mov esi, eax
test esi, esi
jns 0x411fe1
cmp dword [ebp - 0x221c], 0
je 0x4122ba
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00410a00
mov esi, eax
test esi, esi
js 0x4122ba
cmp edi, 2
je 0x412200
test edi, edi
je 0x412015
cmp dword [ebp + 0x14], 0
jne 0x412200
mov ecx, edi
jmp 0x4122b3
cmp dword [ebp + 0x14], 0
je 0x4120ab
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 0x4120ab
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x4120ab
mov edi, 0x418250
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x412200
add edi, 4
cmp edi, 0x418280
jl 0x412065
cmp dword [ebp - 0x2234], 0
je 0x412200
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0040fe80
jmp 0x412200
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 0x4120e4
xor edi, edi
jmp 0x4120f0
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 0x41210b
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 0x4122b1
cmp dword [ebp - 0x2234], eax
je 0x412200
test edi, edi
jne 0x412200
mov dword [ebp - 0x2264], edi
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2220]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], edi
mov dword [ebp - 0x225c], edi
cmp byte [0x41eb78], al
jne 0x4121aa
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412196
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x2220]
mov dword [0x41eb7c], eax
mov byte [0x41eb78], 1
jmp 0x4121af
mov eax, dword [0x41eb7c]
mov ecx, dword [ebp - 0x2220]
mov byte [0x41eb78], 1
jmp 0x4121af
mov eax, dword [0x41eb7c]
test eax, eax
je 0x4121c3
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push ecx
call eax
jmp 0x4121d1
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x2264], 0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
test eax, eax
jne 0x412306
mov byte [ebp - 4], al
mov dword [ebp - 0x2260], eax
cmp word [ebx], 0x7d
jne 0x4117e0
jmp 0x4122ba
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
mov esi, 0x80020009
jmp 0x4122ba
mov byte [ebp - 4], 0
mov dword [ebp - 0x223c], 0
jmp 0x4122ba
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x4122ba
mov ecx, eax
call fcn.0040fa90
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x4122a0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
jmp 0x4122ba
mov ecx, eax
call fcn.0040fa90
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2258]
test eax, eax
je 0x4122a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
jmp 0x4122ba
mov eax, 1
mov ecx, eax
call fcn.0040fa90
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x4122dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], 0
mov eax, esi
mov dword [ebp - 0x222c], 0
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.00412ec6
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.0040fa90
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2260], 0
jmp 0x4122ba