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

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.10045d20
push 0xffffffffffffffff
push 0x1005954d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10088020]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x2218]
mov ebx, dword [ebp + 0x2214]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
cmp word [ebx], 0x7d
je 0x100048d7
nop word [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10003fe0
test edi, edi
je 0x100040e0
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
cmp dword [ebp + 0x221c], 0
je 0x100040e0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x10004048
mov ecx, eax
cmp cx, 0x5c
je 0x10004040
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx eax, word [edx]
mov ecx, eax
test ax, ax
jne 0x10004025
jmp 0x10004048
test edx, edx
jne 0x10004847
mov esi, 0x1006fc80
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000409a
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x10004050
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.10003a60
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x100040d5
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x1000485c
push ebx
mov ecx, edi
call fcn.100038f0
mov esi, eax
test esi, esi
js 0x1000485c
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x100044c4
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000410a
mov ecx, dword [ebp - 0x18]
xor edi, edi
push ebx
mov dword [ebp - 0x28], edi
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
jmp 0x1000410d
mov edi, dword [ebp - 0x28]
push 0x1006fb74
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000425c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
cmp word [ebx], 0x3d
jne 0x10004852
cmp dword [ebp + 0x221c], 0
je 0x100041cc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x40], eax
lea eax, [ebp]
push ebx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 0
push eax
mov dword [ebp - 0x38], 0
call fcn.100033d0
mov esi, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
test esi, esi
js 0x10004869
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x100044c4
cmp dword [ebp + 0x2220], 0
jne 0x10004244
test edi, edi
je 0x10004244
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
push 0x20006
push 0
push dword [ebp - 0x14]
call fcn.10003970
test eax, eax
jne 0x1000489e
mov edi, dword [ebp - 0x4c]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10004227
cmp eax, 2
jne 0x10004876
mov byte [ebp - 4], 0
test edi, edi
je 0x1000423d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.100038f0
mov esi, eax
test esi, esi
js 0x100048d7
jmp 0x10004838
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x1000428b
mov edx, eax
cmp dx, 0x5c
je 0x10004283
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10004268
jmp 0x1000428b
test ecx, ecx
jne 0x10004852
cmp dword [ebp + 0x221c], 0
je 0x1000451f
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x100042f2
cmp dword [esi], 0
je 0x100042e5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000433e
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100042eb
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x10004307
cmp dword [esi + 4], 0
jne 0x100042f2
mov eax, 1
jmp 0x10004307
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000433e
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10004320
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x10004491
jmp 0x10004341
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x10004394
cmp dword [esi], 0
je 0x10004387
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100043db
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000438d
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x100043a9
cmp dword [esi + 4], 0
jne 0x10004394
mov eax, 1
jmp 0x100043a9
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100043db
test edi, edi
je 0x100043bf
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0
test eax, eax
je 0x10004491
mov dword [ebp - 0x10], 0
test esi, esi
je 0x1000443c
cmp dword [esi], 0
je 0x1000442f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100048c9
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004435
push 0
push dword [esi]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x1000445b
cmp dword [esi + 4], 0
jne 0x1000443c
mov eax, 1
jmp 0x1000445b
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100048ce
test edi, edi
je 0x10004475
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x100048ce
mov edi, dword [ebp - 0x18]
mov ecx, edi
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
cmp word [ebx], 0x3d
jne 0x100044c4
push ebx
push 0
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.100033d0
mov esi, eax
test esi, esi
js 0x100048d7
cmp word [ebx], 0x7b
jne 0x10004838
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100044d3
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10004838
push 0
push dword [ebp + 0x221c]
mov ecx, edi
push dword [ebp - 0x24]
push ebx
call fcn.10003f20
mov esi, eax
test esi, esi
js 0x100048d7
push ebx
mov ecx, edi
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
jmp 0x10004838
cmp dword [ebp + 0x2220], 0
jne 0x100045d2
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x1000458a
cmp dword [esi], 0
je 0x1000457d
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10004556
lea edi, [eax + 1]
jmp 0x100045d7
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10004583
push 0
push dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call eax
jmp 0x1000459f
cmp dword [esi + 4], 0
jne 0x1000458a
mov edi, 1
jmp 0x100045a1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x100045d7
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100045bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
jmp 0x100045d7
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x2220]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x2000]
push 0x104
push eax
call fcn.10048991
push eax
call fcn.10004f20
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.100038f0
mov esi, eax
test esi, esi
js 0x100048d7
cmp word [ebx], 0x7b
jne 0x1000467e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004636
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1000467e
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
push 0
push dword [ebp - 0x24]
push ebx
call fcn.10003f20
mov esi, eax
test esi, esi
jns 0x1000466b
cmp dword [ebp - 0x10], 0
je 0x100048d7
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.10003d90
mov esi, eax
test esi, esi
js 0x100048d7
cmp edi, 2
je 0x10004838
test edi, edi
je 0x1000469f
cmp dword [ebp + 0x2220], 0
jne 0x10004838
mov ecx, edi
jmp 0x100048d0
cmp dword [ebp + 0x2220], 0
je 0x10004722
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10004722
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
je 0x10004722
mov edi, 0x1006fc80
push dword [edi]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10004838
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x100046e2
cmp dword [ebp - 0x28], 0
je 0x10004838
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x24]
call fcn.10003a60
jmp 0x10004838
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10004752
xor edi, edi
jmp 0x1000475b
xor eax, eax
cmp eax, dword [ebp - 0x10]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x24]
xor eax, eax
test ecx, ecx
je 0x10004770
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
test eax, eax
jne 0x100048ce
cmp dword [ebp - 0x28], eax
je 0x10004838
test edi, edi
jne 0x10004838
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
cmp byte [0x10089d10], al
jne 0x100047ee
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100047dd
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14]
mov dword [0x10089d0c], eax
mov byte [0x10089d10], 1
jmp 0x100047f3
mov eax, dword [0x10089d0c]
mov ecx, dword [ebp - 0x14]
mov byte [0x10089d10], 1
jmp 0x100047f3
mov eax, dword [0x10089d0c]
test eax, eax
je 0x10004807
push 0
push 0
lea edx, [ebp + 0x2000]
push edx
push ecx
call eax
jmp 0x10004815
lea eax, [ebp + 0x2000]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
test eax, eax
jne 0x10004921
mov byte [ebp - 4], al
mov dword [ebp - 0x54], eax
cmp word [ebx], 0x7d
jne 0x10003fb0
jmp 0x100048d7
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov esi, 0x80020009
jmp 0x100048d7
mov byte [ebp - 4], 0
mov dword [ebp - 0x30], 0
jmp 0x100048d7
mov byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0
jmp 0x100048d7
mov ecx, eax
call fcn.10003d80
mov esi, eax
mov byte [ebp - 4], 0
test edi, edi
je 0x100048c0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x100048d7
mov ecx, eax
call fcn.10003d80
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100048c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
jmp 0x100048d7
mov eax, 1
mov ecx, eax
call fcn.10003d80
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100048f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
mov eax, esi
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x220c]
pop ebp
ret 0x10
mov ecx, eax
call fcn.10003d80
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x54], 0
jmp 0x100048d7