Function at 0x414f80
Capabilities:
Delete registry value
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push ebx
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov ebx, ecx
push str.CRegistryIssue::ResolveIssue___n
push 2
push 0x4932a8
mov esi, 9
call fcn.00401300
xor edi, edi
add esp, 0xc
cmp dword [ebx + 0xe8], edi
je 0x415953
cmp dword [ebp + 8], edi
jne 0x414fed
cmp dword [ebx + 0xf8], 3
jne 0x415953
cmp dword [ebx + 0x1f4], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jne 0x415001
xor eax, eax
jmp 0x415056
mov edx, dword [ebx + 0x1f8]
cmp edx, 0x10
lea esi, [ebx + 0x1e0]
lea eax, [esi + 4]
jb 0x415019
mov edi, dword [eax]
jmp 0x41501b
mov edi, eax
test edi, edi
je 0x41503e
cmp edx, 0x10
jb 0x415028
mov ecx, dword [eax]
jmp 0x41502a
mov ecx, eax
cmp ecx, edi
ja 0x41503e
cmp edx, 0x10
jb 0x415035
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jbe 0x415043
call fcn.00453b27
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
call fcn.00405790
xor edi, edi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0xec]
push eax
call fcn.00405500
mov esi, eax
cmp esi, edi
je 0x415095
push esi
call fcn.0042ab09
push eax
push str.Cannot_convert_key
push str._s_failed_with__s_n
push 0x4932a8
call fcn.0041fb18
add esp, 0x14
jmp 0x415967
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push edi
lea edx, [esp + 0x14]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push ecx
mov dword [esp + 0x34], edi
call fcn.0042b201
add esp, 0x24
cmp dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0x1c], esi
je 0x415949
cmp dword [ebx + 0x1dc], 0x10
lea esi, [ebx + 0x1c4]
jb 0x4150de
mov edi, dword [esi + 4]
jmp 0x4150e1
lea edi, [esi + 4]
mov eax, dword [ebx + 0x100]
cmp eax, 2
mov dword [esp + 0x14], edi
je 0x4158c9
add eax, 0xfffffffd
cmp eax, 2
ja 0x415938
cmp dword [ebx + 0x1d8], 0
mov eax, 0x10
jne 0x415155
cmp dword [ebx + 0x214], eax
jb 0x41511e
mov ecx, dword [ebx + 0x200]
jmp 0x415124
lea ecx, [ebx + 0x200]
cmp dword [ebx + 0x1f8], eax
jb 0x415134
mov eax, dword [ebx + 0x1e4]
jmp 0x41513a
lea eax, [ebx + 0x1e4]
push ecx
push eax
push str.Deleting__s_s_n
push 0x41
push 0x4932a8
call fcn.00401300
add esp, 0x14
jmp 0x415911
cmp dword [ebx + 0x214], eax
jb 0x415165
mov ecx, dword [ebx + 0x200]
jmp 0x41516b
lea ecx, [ebx + 0x200]
cmp dword [ebx + 0x1f8], eax
jb 0x41517b
mov eax, dword [ebx + 0x1e4]
jmp 0x415181
lea eax, [ebx + 0x1e4]
push edi
push ecx
push eax
push str.Writing__s_s_s_n
push 0x41
push 0x4932a8
call fcn.00401300
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x268]
add eax, 0xffffffff
cmp eax, 6
ja case.0x4151b2.4
jmp dword [eax*4 + 0x415984]
push edi
call fcn.00454bd4
push eax
push edi
call fcn.00454c66
add esp, 0xc
add eax, 1
cmp dword [ebx + 0x214], 0x10
jb 0x4151dd
mov ecx, dword [ebx + 0x200]
jmp 0x4151e3
lea ecx, [ebx + 0x200]
push eax
mov eax, dword [ebx + 0x268]
push edi
push eax
push 0
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
push edi
call fcn.004547ac
add esp, 4
cmp dword [ebx + 0x214], 0x10
mov dword [esp + 0x24], eax
jb 0x415223
mov eax, dword [ebx + 0x200]
jmp 0x415229
lea eax, [ebx + 0x200]
mov ecx, dword [ebx + 0x268]
push 4
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
lea ecx, [edi + 1]
push ecx
mov dword [esp + 0x20], esi
call fcn.0042f9cf
mov dword [esp + 0x1c], eax
mov eax, esi
add esp, 4
cmp eax, 1
jle 0x4152c9
and eax, 0x80000001
jns 0x41528b
dec eax
or eax, 0xfffffffe
inc eax
jne 0x4152c9
xor esi, esi
test edi, edi
jle 0x4152c9
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18]
add eax, esi
push eax
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
push ecx
push edx
call fcn.0040cea0
add esp, 0xc
test eax, eax
jne 0x4152bd
mov esi, edi
add dword [esp + 0x1c], 2
add esi, 1
cmp esi, edi
jl 0x41529b
cmp esi, edi
jne 0x415317
cmp dword [ebx + 0x214], 0x10
jb 0x4152de
mov eax, dword [ebx + 0x200]
jmp 0x4152e4
lea eax, [ebx + 0x200]
mov edx, dword [ebx + 0x268]
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f9ca
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
mov ecx, dword [esp + 0x14]
push ecx
push str.The_value_of_the_ReplaceWith_key_is_invalid_n
push 0x400
push 0x4932a8
call fcn.00401300
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
call fcn.0042f9ca
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
push 0x47505c
push edi
call fcn.004538a0
add esp, 8
test eax, eax
je 0x4157e4
cmp dword [ebx + 0x214], 0x10
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
jb 0x415382
mov eax, dword [ebx + 0x200]
jmp 0x415388
lea eax, [ebx + 0x200]
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x24], 7
jne 0x415695
test eax, eax
jne 0x415695
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0042f9cf
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je case.0x4151b2.4
cmp dword [ebx + 0x214], 0x10
jb 0x4153df
mov eax, dword [ebx + 0x200]
jmp 0x4153e5
lea eax, [ebx + 0x200]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x2c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415681
lea ecx, [esp + 0x3c]
call fcn.00405cf0
push 0x475afc
lea eax, [esp + 0x40]
push eax
push edi
mov dword [esp + 0x134], 0
call fcn.00425994
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00405cf0
lea ecx, [esp + 0x48]
push ecx
push esi
mov byte [esp + 0x130], 1
call fcn.00425a5c
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415455
sub eax, edx
mov edx, dword [esp + 0x28]
lea edi, [eax + edx]
push edi
call fcn.0042f9cf
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x415664
push edi
mov esi, eax
push 0
push esi
call fcn.004530b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
mov eax, edx
add esp, 0xc
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x5c]
mov dword [esp + 0x60], ecx
push edx
lea ecx, [esp + 0x30]
call fcn.0040d0c0
test al, al
je 0x4155e4
mov eax, dword [esp + 0x14]
add eax, edi
cmp esi, eax
jae 0x4155e4
push 0x47505c
lea ecx, [esp + 0x30]
call fcn.0040aa30
mov ecx, eax
call fcn.00405b20
test eax, eax
jne 0x415594
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
lea eax, [esp + 0x48]
mov ecx, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], edx
call fcn.0040d0c0
test al, al
je 0x4155cf
cmp dword [ebx + 0x100], 4
jne 0x415548
push 0
lea ecx, [ebx + 0x218]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040aa30
mov ecx, eax
call fcn.0040e1a0
cmp eax, 0xffffffff
jne 0x41557f
lea ecx, [esp + 0x1c]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x41555c
mov eax, dword [eax + 4]
jmp 0x41555f
add eax, 4
push eax
push edi
push esi
call fcn.004542fb
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x415570
sub eax, edx
lea esi, [esi + eax + 1]
push 0
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x24]
call fcn.0040a9f0
jmp 0x415503
lea ecx, [esp + 0x2c]
call fcn.0040aa30
cmp dword [eax + 0x18], 0x10
jb 0x4155a8
mov eax, dword [eax + 4]
jmp 0x4155ab
add eax, 4
push eax
push edi
push esi
call fcn.004542fb
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4155c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4155c0
sub eax, edx
lea esi, [esi + eax + 1]
push 0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x34]
call fcn.0040a9f0
jmp 0x4154a2
sub esi, dword [esp + 0x14]
add esi, 1
cmp esi, 2
ja 0x415621
cmp dword [ebx + 0x214], 0x10
jb 0x41560d
mov eax, dword [ebx + 0x200]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x415653
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x200]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x415653
cmp dword [ebx + 0x214], 0x10
jb 0x415632
mov eax, dword [ebx + 0x200]
jmp 0x415638
lea eax, [ebx + 0x200]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x268]
push esi
push edx
mov edx, dword [esp + 0x18]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call fcn.0042f9ca
mov esi, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x48]
call fcn.00407cf0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x128], 0xffffffff
call fcn.00407cf0
push esi
call fcn.0042f9ca
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
push 0x473048
lea ecx, [esp + 0x78]
call fcn.004043b0
push 0x475af8
lea ecx, [esp + 0xb0]
mov dword [esp + 0x12c], 2
call fcn.004043b0
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0xb0]
push edx
push esi
mov byte [esp + 0x134], 3
call fcn.004257fc
add esp, 0xc
lea ecx, [esp + 0xac]
call fcn.00402f20
or edi, 0xffffffff
lea ecx, [esp + 0x74]
mov dword [esp + 0x128], edi
call fcn.00402f20
push 0x473048
lea ecx, [esp + 0x94]
call fcn.004043b0
push 0x475af4
lea ecx, [esp + 0xe8]
mov dword [esp + 0x12c], 4
call fcn.004043b0
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0xe8]
push ecx
push esi
mov byte [esp + 0x134], 5
call fcn.004257fc
add esp, 0xc
lea ecx, [esp + 0xe4]
call fcn.00402f20
lea ecx, [esp + 0x90]
mov dword [esp + 0x128], edi
call fcn.00402f20
push 0x473048
lea ecx, [esp + 0x104]
call fcn.004043b0
push 0x47505c
lea ecx, [esp + 0xcc]
mov dword [esp + 0x12c], 6
call fcn.004043b0
lea edx, [esp + 0x100]
push edx
lea eax, [esp + 0xcc]
push eax
push esi
mov byte [esp + 0x134], 7
call fcn.004257fc
add esp, 0xc
lea ecx, [esp + 0xc8]
call fcn.00402f20
lea ecx, [esp + 0x100]
mov dword [esp + 0x128], edi
call fcn.00402f20
cmp dword [esi + 0x18], 0x10
jb 0x4157e1
mov edi, dword [esi + 4]
jmp 0x4157e4
lea edi, [esi + 4]
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4157f0
sub eax, edx
mov dword [esp + 0x18], eax
je 0x41589e
add eax, 2
push eax
mov dword [esp + 0x20], eax
call fcn.0042f9cf
mov esi, eax
add esp, 4
test esi, esi
je case.0x4151b2.4
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push esi
call fcn.004530b0
mov edx, dword [esp + 0x28]
push edi
push edx
push esi
call fcn.004542fb
xor eax, eax
add esp, 0x18
cmp dword [esp + 0x18], eax
jle 0x415858
mov ecx, dword [esp + 0x18]
cmp byte [eax + esi], 0x3b
jne 0x415851
mov byte [eax + esi], 0
add eax, 1
cmp eax, ecx
jl 0x415847
cmp dword [ebx + 0x214], 0x10
jb 0x415869
mov eax, dword [ebx + 0x200]
jmp 0x41586f
lea eax, [ebx + 0x200]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x268]
push ecx
push esi
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.0042f9ca
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
cmp dword [ebx + 0x214], 0x10
jb 0x4158af
mov eax, dword [ebx + 0x200]
jmp 0x4158b5
lea eax, [ebx + 0x200]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415934
mov eax, 0x10
cmp dword [ebx + 0x214], eax
jb 0x4158de
mov ecx, dword [ebx + 0x200]
jmp 0x4158e4
lea ecx, [ebx + 0x200]
cmp dword [ebx + 0x1f8], eax
jb 0x4158f4
mov eax, dword [ebx + 0x1e4]
jmp 0x4158fa
lea eax, [ebx + 0x1e4]
push edi
push ecx
push eax
push str.Deleting__s_s_s_n
push 0x41
push 0x4932a8
call fcn.00401300
add esp, 0x18
cmp dword [ebx + 0x214], 0x10
jb 0x415922
mov eax, dword [ebx + 0x200]
jmp 0x415928
lea eax, [ebx + 0x200]
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0042b427
mov esi, dword [esp + 0x20]
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push esi
mov ecx, ebx
call eax
push str.CRegistryIssue::ResolveIssue___n
push 2
push 0x4932a8
call fcn.00401300
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4