Function at 0x4ae200
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x62c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
mov ebx, dword [esp + 0x638]
push ebp
mov ebp, dword [esp + 0x644]
push esi
mov esi, dword [esp + 0x644]
push edi
mov edi, dword [esp + 0x640]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
call fcn.004ad230
test al, al
je 0x4ae24f
mov eax, 1
jmp 0x4ae4c3
test edi, edi
je 0x4ae33e
test esi, esi
je 0x4ae275
push 0x57ab00
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
call esi
mov eax, dword [esp + 0x18]
push str.Signer
push eax
call esi
mov esi, 0x104
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x4ae2a2
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push edi
mov ecx, ebp
call fcn.004adf00
mov esi, dword [esp + 0x14]
mov dword [ebp + 4], eax
jmp 0x4ae2be
push ebp
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
mov edi, dword [esp + 0x2c]
mov ecx, edi
call fcn.004adcd0
mov dword [edi + 4], eax
mov ebp, edi
mov eax, dword [ebp + 4]
mov ecx, str.Generic_distrust
mov dword [ebp + 8], ecx
test eax, eax
je 0x4ae363
cmp eax, 0x800b0100
ja 0x4ae357
je 0x4ae34e
cmp eax, 0x80092026
je 0x4ae345
cmp eax, 0x800b0004
jne 0x4ae35e
mov dword [ebp + 8], str.File_signer_or_publisher_is_not_trusted_in_system_settings
call fcn.004ad230
test al, al
jne 0x4ae245
call fcn.004ad950
test al, al
je 0x4ae245
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4ae33e
mov edx, dword [ebp + 8]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ae320
sub eax, esi
sar eax, 1
inc eax
push eax
push edx
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
jmp 0x4ae4c3
mov dword [ebp + 8], str.File_signer_or_publisher_is_not_trusted_in_user_settings
jmp 0x4ae2ef
mov dword [ebp + 8], 0x5b28c0
jmp 0x4ae2ef
cmp eax, 0x800b0111
je 0x4ae2e8
mov dword [ebp + 8], ecx
jmp 0x4ae2ef
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
test esi, esi
je 0x4ae491
test edi, edi
je 0x4ae393
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x24]
push eax
push 1
push 0
push str.Signer
push edi
call ebx
mov esi, 0x5b2ac8
jmp 0x4ae3a0
mov ecx, dword [esi - 4]
sub esi, 4
lea eax, [esp + 0x20]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ae3d6
test dx, dx
je 0x4ae3d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ae3d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ae3b0
xor eax, eax
jmp 0x4ae3db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ae46a
cmp esi, 0x5b2ab8
jne 0x4ae3a0
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x234]
push ecx
mov ecx, ebp
mov dword [esp + 0x24], 0x104
call fcn.004adcd0
mov dword [ebp + 4], eax
test eax, eax
jne 0x4ae488
lea ecx, [esp + 0x430]
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ae45e
test dx, dx
je 0x4ae45a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ae45e
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ae438
xor eax, eax
jmp 0x4ae463
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4ae478
mov dword [ebp + 4], eax
mov dword [ebp + 8], str.Success
mov byte [esp + 0x13], 1
jmp 0x4ae498
mov dword [ebp + 4], 1
mov dword [ebp + 8], str.File_is_not_signed_by_Jetico
jmp 0x4ae498
mov dword [ebp + 8], str.Could_not_read_own_signature
jmp 0x4ae498
mov dword [ebp + 8], str.Failed_to_retreive_signer_name
test edi, edi
je 0x4ae4be
mov ecx, dword [ebp + 8]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4ae4a4
sub eax, esi
sar eax, 1
inc eax
push eax
push ecx
push 1
push 0
push ecx
push edi
call ebx
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x638]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051916c
add esp, 0x62c
ret 0x10