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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50126b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.004c7830
mov eax, dword [0x567e00]
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.0041d490
mov esi, eax
test esi, esi
js 0x41ea4f
cmp word [ebx], 0x7d
je 0x41ea3c
jmp 0x41e0d0
push str.Delete
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x516cb4
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41e103
test edi, edi
je 0x41e205
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
cmp dword [ebp + 0x10], 0
je 0x41e205
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x41e164
cmp ax, 0x5c
je 0x41e15c
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x41e141
jmp 0x41e164
test edx, edx
jne 0x41ea2a
mov esi, 0x518650
lea esp, [esp]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41e1be
add esi, 4
cmp esi, 0x518680
jl 0x41e170
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.0041db00
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x41e1fb
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
push ebx
mov ecx, edi
call fcn.0041ef10
mov esi, eax
test esi, esi
js 0x41ea3c
mov dword [ebp - 0x2240], 0
jmp 0x41e66a
mov dword [ebp - 0x2240], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41e235
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
jmp 0x41e23b
mov edi, dword [ebp - 0x2234]
push 0x516cac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41e38f
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
cmp word [ebx], 0x3d
jne 0x41ea2a
cmp dword [ebp + 0x10], 0
je 0x41e30c
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.0041c8f0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x41ea3c
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x41e66a
cmp dword [ebp + 0x14], 0
jne 0x41e374
test edi, edi
je 0x41e374
xor edi, edi
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], edi
push eax
push 0x20006
push edi
push edi
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e342
mov edi, dword [ebp - 0x2234]
mov byte [ebp - 4], 0
test eax, eax
jne 0x41ea12
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41e369
cmp eax, 2
jne 0x41ea12
test edi, edi
je 0x41e374
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0041ef10
mov esi, eax
test esi, esi
js 0x41ea3c
jmp 0x41ea06
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x41e3c1
mov edx, ecx
jmp 0x41e3a0
cmp dx, 0x5c
je 0x41e3b9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x41e3a0
jmp 0x41e3c1
test eax, eax
jne 0x41ea2a
cmp dword [ebp + 0x10], 0
je 0x41e6cc
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 3
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x41e48c
cmp dword [esi], 0
je 0x41e47f
push 0x51857c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41e452
mov eax, 1
mov edi, dword [ebp - 0x2230]
mov byte [ebp - 4], 0
test eax, eax
je 0x41e631
mov byte [ebp - 4], 4
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x41e515
cmp dword [esi], 0
je 0x41e508
push 0x51857c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41e4db
mov eax, 1
jmp 0x41e555
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e485
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x41e4a7
cmp dword [esi + 4], 0
jne 0x41e48c
mov eax, 1
jmp 0x41e4a7
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 0x41e404
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x41e4c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
jmp 0x41e40a
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e50e
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x41e530
cmp dword [esi + 4], 0
jne 0x41e515
mov eax, 1
jmp 0x41e530
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 0x41e555
test edi, edi
je 0x41e53f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x41e631
mov byte [ebp - 4], 5
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x41e5d8
cmp dword [esi], 0
je 0x41e5cb
push 0x51857c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41e591
mov eax, 1
jmp 0x41e625
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e5d1
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
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 0x41e600
cmp dword [esi + 4], 0
jne 0x41e5d8
mov eax, 1
jmp 0x41e600
lea eax, [ebp - 0x2238]
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 0x41e625
test edi, edi
je 0x41e60f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x41ea31
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
cmp word [ebx], 0x3d
jne 0x41e66a
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.0041c8f0
mov esi, eax
test esi, esi
js 0x41ea3c
cmp word [ebx], 0x7b
jne 0x41ea06
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e680
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x41ea06
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.0041e040
mov esi, eax
test esi, esi
js 0x41ea3c
push ebx
mov ecx, edi
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
jmp 0x41ea06
cmp dword [ebp + 0x14], 0
jne 0x41e797
mov esi, dword [ebp - 0x2228]
mov byte [ebp - 4], 6
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x41e747
cmp dword [esi], 0
je 0x41e73a
push 0x51857c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x41e70d
lea edi, [eax + 1]
mov byte [ebp - 4], al
jmp 0x41e79c
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e740
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x41e762
cmp dword [esi + 4], 0
jne 0x41e747
mov edi, 1
jmp 0x41e764
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 0x41e791
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x41e77b
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
mov byte [ebp - 4], 0
jmp 0x41e79c
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 int.0041cf40
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0041ef10
mov esi, eax
test esi, esi
js 0x41ea3c
cmp word [ebx], 0x7b
jne 0x41e859
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e802
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x41e859
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.0041e040
mov esi, eax
test esi, esi
jns 0x41e843
cmp dword [ebp - 0x221c], 0
je 0x41ea3c
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.0041d490
mov esi, eax
test esi, esi
js 0x41ea3c
cmp edi, 2
je 0x41ea06
test edi, edi
je 0x41e876
cmp dword [ebp + 0x14], 0
jne 0x41ea06
push edi
jmp 0x41ea32
cmp dword [ebp + 0x14], 0
je 0x41e908
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 0x41e908
cmp dword [ebp - 0x221c], eax
jbe 0x41e908
mov edi, 0x518650
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41ea06
add edi, 4
cmp edi, 0x518680
jl 0x41e8c2
cmp dword [ebp - 0x2234], 0
je 0x41ea06
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.0041db00
jmp 0x41ea06
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 0x41e941
xor edi, edi
jmp 0x41e94d
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 0x41e968
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 0x41ea31
cmp dword [ebp - 0x2234], eax
je 0x41ea06
test edi, edi
jne 0x41ea06
mov byte [ebp - 4], 7
cmp byte [0x56c5a4], al
jne 0x41e9cd
push 0x51857c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41e9bf
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x56c5a0], eax
mov byte [0x56c5a4], 1
jmp 0x41e9d2
mov eax, dword [0x56c5a0]
mov byte [0x56c5a4], 1
jmp 0x41e9d2
mov eax, dword [0x56c5a0]
test eax, eax
je 0x41e9eb
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x41e9fe
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x41ea31
cmp word [ebx], 0x7d
jne 0x41e0d0
jmp 0x41ea3c
push eax
call fcn.0041d000
add esp, 4
mov esi, eax
test edi, edi
je 0x41ea3c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41ea3c
mov esi, 0x80020009
jmp 0x41ea3c
push eax
call fcn.0041d000
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x41ea4d
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.004c6f8b
mov esp, ebp
pop ebp
ret 0x10