Function at 0x414020
Capabilities:
Delete registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ab2f7
mov eax, dword fs:[0]
push eax
sub esp, 0x538
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x54c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x560]
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
mov eax, dword [esp + 0x55c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x88], ebp
jbe 0x414081
call fcn.00484029
mov edi, esi
xor ebx, ebx
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
mov dword [esp + 0x90], edi
jbe 0x414099
call fcn.00484029
cmp edi, esi
je 0x4149eb
cmp edi, dword [ebp + 8]
jb 0x4140ab
call fcn.00484029
mov ebp, dword [edi]
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x58], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4140d3
cmp dword [esp + 0x84], ebx
jne 0x4140dd
cmp dword [ebp + 8], 1
je 0x41490a
lea edx, [ebp + 0xc]
push edx
call fcn.0041a210
cmp eax, ebx
mov dword [esp + 0x30], eax
je 0x4149eb
mov eax, dword [ebp + 8]
sub eax, 1
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0xf013f
push 0xffffffffffffffff
mov edi, eax
push ebx
lea eax, [ebp + 0x14]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x144], 7
mov dword [esp + 0x140], ebx
mov word [esp + 0x130], bx
call fcn.00406430
mov dword [esp + 0x554], ebx
mov dword [esp + 0x20], vtable.CAUEnv.0
call fcn.004073f0
mov dword [esp + 0x28], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x554], 1
cmp dword [eax + 0x64], 1
jne 0x4141d7
mov ecx, eax
mov eax, dword [ecx + 0x68]
lea edx, [ecx + 0x90]
push edx
mov edx, dword [ecx + 0x6c]
mov ecx, dword [ecx + 0x58]
push edx
push ecx
add eax, 0x1c
push eax
lea edx, [esp + 0xa4]
push edx
call fcn.00453430
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x24]
mov byte [esp + 0x558], 2
call fcn.00452ab0
mov byte [esp + 0x554], 1
lea eax, [esp + 0x98]
mov dword [esp + 0x94], vtable.CAUEnv.0
call fcn.00406b70
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x64], 2
jne 0x414231
mov eax, dword [ecx + 0x68]
mov edx, dword [ecx + 0x5c]
add eax, 0x1c
push edx
push eax
lea eax, [esp + 0xac]
push eax
call fcn.00452b10
lea ecx, [esp + 0xa4]
push ecx
lea esi, [esp + 0x24]
mov byte [esp + 0x558], 3
call fcn.00452ab0
mov byte [esp + 0x554], 1
lea eax, [esp + 0xa8]
mov dword [esp + 0xa4], vtable.CAUEnv.0
call fcn.00406b70
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call fcn.00455d00
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x12c]
mov byte [esp + 0x55c], 4
call fcn.00406430
mov esi, 8
mov byte [esp + 0x554], 1
cmp dword [esp + 0x70], esi
jb 0x41427e
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x13c], esi
mov eax, dword [esp + 0x128]
jae 0x414295
lea eax, [esp + 0x128]
push ebx
lea edx, [esp + 0x54]
push edx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41492a
push 0xffffffffffffffff
mov edi, 7
push ebx
lea eax, [ebp + 0x30]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], bx
call fcn.00406430
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x55c], 5
call fcn.00455d00
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xf4]
mov byte [esp + 0x55c], 6
call fcn.00406430
mov byte [esp + 0x554], 5
cmp dword [esp + 0x70], esi
jb 0x414331
mov eax, dword [esp + 0x5c]
push eax
call fcn.004692b1
add esp, 4
cmp byte [esp + 0x564], bl
jne 0x41436a
cmp dword [esp + 0x104], esi
mov eax, dword [esp + 0xf0]
jae 0x414351
lea eax, [esp + 0xf0]
mov ecx, dword [esp + 0x50]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x41436a
cmp eax, 2
jne 0x41498b
mov ecx, dword [esp + 0x54]
mov ebp, dword [ecx + 0x50]
mov eax, ebp
sub eax, ebx
je 0x414383
sub eax, 1
jne 0x414388
mov ebp, 1
jmp 0x414388
mov ebp, 4
push 0xffffffffffffffff
lea eax, [ecx + 0x54]
push ebx
lea ecx, [esp + 0x110]
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], bx
call fcn.00406430
lea edx, [esp + 0x108]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x55c], 7
call fcn.00455920
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x55c], 8
call fcn.00406430
mov esi, 8
mov byte [esp + 0x554], 7
cmp dword [esp + 0x70], esi
jb 0x414409
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004692b1
add esp, 4
lea edx, [esp + 0x108]
push edx
lea edi, [esp + 0x5c]
call fcn.004556b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x55c], 9
call fcn.00406430
mov byte [esp + 0x554], 7
cmp dword [esp + 0x70], esi
jb 0x41444c
mov eax, dword [esp + 0x5c]
push eax
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x120], esi
mov edx, dword [esp + 0x10c]
mov dword [esp + 0x30], 0x3e8
jae 0x41446b
lea edx, [esp + 0x10c]
mov edi, 7
mov eax, edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x414482
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x3c]
call fcn.00406d50
cmp ebp, ebx
jbe 0x4144b7
lea ecx, [esp + 0x15c]
push ecx
mov eax, ebp
lea ecx, [esp + 0x34]
mov edx, esi
call fcn.00413b30
jmp 0x4144b9
xor al, al
cmp al, bl
mov esi, 8
sete byte [esp + 0x1b]
cmp dword [esp + 0x4c], esi
jb 0x4144d8
mov edx, dword [esp + 0x38]
push edx
call fcn.004692b1
add esp, 4
cmp byte [esp + 0x1b], bl
jne 0x41495c
cmp dword [esp + 0x104], esi
mov eax, dword [esp + 0xf0]
jae 0x4144f9
lea eax, [esp + 0xf0]
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x160]
push edx
push ebp
push ebx
push eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41495c
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov eax, 7
mov dword [esp + 0x158], eax
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], bx
mov byte [esp + 0x554], 0xb
push 1
push 0x4b3a90
lea esi, [esp + 0x3c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
call fcn.00406d50
mov edx, esi
push edx
lea esi, [esp + 0x78]
mov byte [esp + 0x558], 0xc
call fcn.004062b0
mov ebp, 8
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x4c], ebp
jb 0x4145ac
mov eax, dword [esp + 0x38]
push eax
call fcn.004692b1
add esp, 4
lea ecx, [esp + 0x124]
push ecx
lea esi, [esp + 0x78]
call fcn.004062b0
cmp edi, ebx
lea eax, [esp + 0x34]
jne 0x4145f6
mov edx, str.success
call fcn.00405e60
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x558], 0xd
call fcn.004062b0
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x4c], ebp
jb 0x414631
mov eax, dword [esp + 0x38]
push eax
jmp 0x414629
mov edx, str.error
call fcn.00405e60
lea ecx, [esp + 0x34]
push ecx
lea esi, [esp + 0x78]
mov byte [esp + 0x558], 0xe
call fcn.004062b0
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x4c], ebp
jb 0x414631
mov edx, dword [esp + 0x38]
push edx
call fcn.004692b1
add esp, 4
mov ecx, edi
lea edx, [esp + 0x58]
call fcn.004451b0
push eax
lea esi, [esp + 0x78]
mov byte [esp + 0x558], 0xf
call fcn.004062b0
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x70], ebp
jb 0x414669
mov eax, dword [esp + 0x5c]
push eax
call fcn.004692b1
add esp, 4
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0043e6a0
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x148]
mov byte [esp + 0x55c], 0x10
call fcn.00406430
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x70], ebp
jb 0x4146ac
mov edx, dword [esp + 0x5c]
push edx
call fcn.004692b1
add esp, 4
cmp byte [esp + 0x564], 1
jne 0x414747
mov edx, str.ADD_REG
lea eax, [esp + 0x58]
call fcn.00405e60
mov edx, 0x4b3ac8
lea eax, [esp + 0x34]
mov byte [esp + 0x554], 0x11
call fcn.00405e60
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x144]
lea edx, [esp + 0x38]
mov byte [esp + 0x558], 0x12
call fcn.004444d0
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x414711
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004692b1
add esp, 4
mov edi, 7
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0x70], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x41480d
mov edx, dword [esp + 0x5c]
push edx
call fcn.004692b1
add esp, 4
jmp 0x41480d
mov edx, str.UPDATE_REG_ADD
lea eax, [esp + 0xd0]
call fcn.00405e60
mov edx, 0x4b3ac8
lea eax, [esp + 0xb4]
mov byte [esp + 0x554], 0x13
call fcn.00405e60
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x144]
lea edx, [esp + 0xb8]
mov byte [esp + 0x558], 0x14
call fcn.004444d0
add esp, 4
cmp dword [esp + 0xcc], ebp
jb 0x4147b0
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.004692b1
add esp, 4
mov esi, 7
mov byte [esp + 0x554], 0xb
cmp dword [esp + 0xe8], ebp
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x4147ec
mov edx, dword [esp + 0xd4]
push edx
call fcn.004692b1
add esp, 4
cmp byte [esp + 0x564], bl
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
mov edi, esi
je 0x414838
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x64], 1
jne 0x414827
mov eax, dword [esi + 0xcc]
mov ecx, dword [esp + 0x54]
push eax
call fcn.00427660
cmp dword [esi + 0x64], 2
jne 0x414838
mov edx, dword [esp + 0x54]
mov ecx, esi
call fcn.0041ed70
cmp dword [esp + 0x158], ebp
jb 0x414851
mov ecx, dword [esp + 0x144]
push ecx
call fcn.004692b1
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov word [esp + 0x144], bx
call fcn.00406240
cmp dword [esp + 0x120], ebp
jb 0x414889
mov edx, dword [esp + 0x10c]
push edx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x104], ebp
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], bx
jb 0x4148b8
mov eax, dword [esp + 0xf0]
push eax
call fcn.004692b1
add esp, 4
mov byte [esp + 0x554], bl
lea eax, [esp + 0x24]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], bx
mov dword [esp + 0x20], vtable.CAUEnv.0
call fcn.00406b70
mov dword [esp + 0x554], 0xffffffff
cmp dword [esp + 0x13c], ebp
jb 0x41490a
mov ecx, dword [esp + 0x128]
push ecx
call fcn.004692b1
add esp, 4
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
cmp edi, dword [ebp + 8]
jb 0x414922
call fcn.00484029
add edi, 4
jmp 0x414085
mov byte [esp + 0x554], bl
lea eax, [esp + 0x24]
mov dword [esp + 0x20], vtable.CAUEnv.0
call fcn.00406b70
cmp dword [esp + 0x13c], esi
jb 0x4149eb
mov edx, dword [esp + 0x128]
push edx
jmp 0x4149e3
cmp dword [esp + 0x120], esi
jb 0x414975
mov edx, dword [esp + 0x10c]
push edx
call fcn.004692b1
add esp, 4
mov word [esp + 0x10c], bx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], edi
cmp dword [esp + 0x104], esi
jb 0x4149a4
mov eax, dword [esp + 0xf0]
push eax
call fcn.004692b1
add esp, 4
mov byte [esp + 0x554], bl
lea eax, [esp + 0x24]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], bx
mov dword [esp + 0x20], vtable.CAUEnv.0
call fcn.00406b70
cmp dword [esp + 0x13c], esi
jb 0x4149eb
mov ecx, dword [esp + 0x128]
push ecx
call fcn.004692b1
add esp, 4
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.00483bf3
add esp, 0x544
ret 0xc