Function at 0x403a70
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c8a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x415110]
xor eax, dword [esp + 0x230]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x228], eax
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24c]
mov edi, dword [esp + 0x240]
push edi
mov dword [esp + 0x23c], ebx
mov dword [esp + 0x20], eax
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jge 0x403ad5
jmp 0x404057
cmp byte [edi], 0x7d
push ebp
je 0x404054
nop
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [esp + 0x18], 1
call esi
mov ebp, eax
neg ebp
push str.ForceRemove
sbb ebp, ebp
push edi
inc ebp
call esi
test eax, eax
je 0x403b11
cmp ebp, ebx
je 0x403c16
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp dword [esp + 0x24c], ebx
je 0x403c16
mov dword [esp + 0x1c], ebx
mov cl, byte [edi]
cmp cl, bl
mov byte [esp + 0x23c], 1
mov eax, edi
je 0x403b5c
cmp cl, 0x5c
je 0x404084
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
cmp cl, bl
jne 0x403b46
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401d20
test eax, eax
je 0x403b83
mov ecx, dword [esp + 0x248]
mov dword [esp + 0x1c], ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00402530
mov dword [esp + 0x1c], ebx
cmp ebp, ebx
je 0x403c0f
mov ebp, dword [esp + 0x18]
push edi
mov ecx, ebp
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x40409d
push edi
mov ecx, ebp
call fcn.00401db0
mov esi, eax
cmp esi, ebx
jl 0x40409d
mov byte [esp + 0x23c], bl
cmp byte [edi], 0x7b
jne 0x403c01
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x403c01
mov eax, dword [esp + 0x24c]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
push ebx
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00403a70
mov esi, eax
cmp esi, ebx
jl 0x404045
push edi
mov ecx, ebp
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp byte [edi], 0x7d
jne 0x403ae0
jmp 0x404045
mov byte [esp + 0x23c], bl
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403c3e
mov ecx, dword [esp + 0x18]
push edi
mov dword [esp + 0x14], ebx
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
push 0x40e6cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403d4e
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x12c]
push edx
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp byte [edi], 0x3d
jne 0x40408d
cmp dword [esp + 0x24c], ebx
je 0x403ce2
mov eax, dword [esp + 0x248]
push edi
lea ecx, [esp + 0x130]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x248], 2
mov dword [esp + 0x1c], eax
call fcn.004036f0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], ebx
jge 0x403bb3
lea ecx, [esp + 0x10]
call fcn.00402510
lea ecx, [esp + 0x14]
call fcn.00402510
jmp 0x404054
cmp dword [esp + 0x250], ebx
jne 0x403d3f
cmp dword [esp + 0x10], ebx
je 0x403d3f
mov eax, dword [esp + 0x248]
push 0x20006
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00401880
cmp eax, ebx
jne 0x404031
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x12c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403d34
cmp eax, 2
jne 0x404031
cmp esi, ebx
je 0x403d3f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401db0
jmp 0x403bf7
mov cl, byte [edi]
cmp cl, bl
mov eax, edi
je 0x403d72
mov esi, dword [sym.imp.USER32.dll_CharNextA]
lea esp, [esp]
cmp cl, 0x5c
je 0x40408d
push eax
call esi
mov cl, byte [eax]
cmp cl, bl
jne 0x403d60
cmp dword [esp + 0x24c], ebx
je 0x403e90
mov eax, dword [esp + 0x248]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
push edi
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403dc2
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x403db2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x403e54
mov eax, dword [esp + 0x248]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push edi
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403e01
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x403df5
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x403e54
mov ecx, dword [esp + 0x248]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x4040a3
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x403e42
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov edx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x14], edx
jne 0x4040a3
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp byte [edi], 0x3d
jne 0x403bba
mov ecx, dword [esp + 0x18]
push edi
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004036f0
mov esi, eax
cmp esi, ebx
jl 0x404045
jmp 0x403bba
cmp dword [esp + 0x250], ebx
jne 0x403f98
mov edx, dword [esp + 0x248]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push edi
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403ed8
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x403ed0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
cmp eax, ebx
mov ebp, eax
je 0x403ee9
mov dword [esp + 0x250], 1
push 0x104
push edi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401db0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp byte [edi], 0x7b
jne 0x403f66
mov eax, dword [esp + 0x250]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.00403a70
mov esi, eax
cmp esi, ebx
jge 0x403f52
cmp dword [esp + 0x250], ebx
je 0x404045
mov ecx, dword [esp + 0x18]
push edi
call fcn.00401bf0
mov esi, eax
cmp esi, ebx
jl 0x404045
cmp ebp, 2
mov edx, dword [esp + 0x20]
mov dword [esp + 0x250], edx
je 0x403c01
cmp ebp, ebx
mov eax, edx
je 0x403fa2
cmp eax, ebx
jne 0x403c01
push ebp
call fcn.00401440
add esp, 4
mov esi, eax
jmp 0x404045
mov ebp, 2
jmp 0x403ede
cmp eax, ebx
je 0x403feb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00401d60
test eax, eax
je 0x403feb
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401d20
test eax, eax
je 0x403c01
cmp dword [esp + 0x10], ebx
je 0x403c01
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
call fcn.00402530
jmp 0x403c01
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404008
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebx
jne 0x4040b7
cmp dword [esp + 0x10], ebx
je 0x403c01
mov edx, dword [esp + 0x248]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x403c01
push eax
call fcn.00401440
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00402510
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404054
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
xor ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
call fcn.0040c184
add esp, 0x230
ret 0x10
lea ecx, [esp + 0x1c]
call fcn.00402510
lea ecx, [esp + 0x14]
call fcn.00402510
mov eax, 0x80020009
jmp 0x404056
lea ecx, [esp + 0x1c]
jmp 0x404040
lea ecx, [esp + 0x14]
call fcn.00402510
push esi
call fcn.00401440
add esp, 4
jmp 0x404056
lea ecx, [esp + 0x14]
call fcn.00402510
push ebp
call fcn.00401440
add esp, 4
jmp 0x404056