Function at 0x402430
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441d81
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400
lea eax, [ebp - 0x410]
xor bl, bl
push 0
push eax
call fcn.00421ce0
add esp, 0xc
mov dword [ebp - 0x444], 7
xor eax, eax
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x458]
mov word [ebp - 0x458], ax
push 0x40
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionApp_Paths_
call fcn.00406ac0
push 0xffffffffffffffff
push 0
push 0x45e200
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0
call fcn.00406180
xor eax, eax
mov dword [ebp - 0x478], 7
push 0xffffffffffffffff
push eax
push 0x45e1b8
lea ecx, [ebp - 0x48c]
mov dword [ebp - 0x47c], 0
mov word [ebp - 0x48c], ax
call fcn.00406f70
push 1
push 0x452c6c
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.00406050
push 0xffffffffffffffff
push 0
push 0x45e1d0
lea ecx, [ebp - 0x48c]
call fcn.00406180
push 0x45e110
mov edx, 0x45e1a0
lea ecx, [ebp - 0x474]
call fcn.00406450
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push eax
push 0x45e1d0
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 7
mov dword [ebp - 0x494], 0
mov word [ebp - 0x4a4], ax
call fcn.00406f70
push 0x45e140
mov edx, 0x45e1a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4bc]
call fcn.00406450
add esp, 4
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
push ecx
cmovae eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x4c0]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000002
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
mov edi, 1
test eax, eax
jne 0x40266c
cmp dword [ebp - 0x460], 8
lea eax, [ebp - 0x474]
cmovae eax, dword [ebp - 0x474]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00406430
lea ecx, [ebp - 0x410]
add esp, 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402600
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x4c0]
test eax, eax
movzx ebx, bl
lea eax, [ebp - 0x474]
cmove ebx, edi
mov edx, 0x452c70
cmp dword [ebp - 0x460], 8
cmovae eax, dword [ebp - 0x474]
push eax
call fcn.00401ed0
add esp, 4
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
push str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x458]
call fcn.00406ac0
push 0xffffffffffffffff
push 0
push 0x45e1e8
lea ecx, [ebp - 0x458]
call fcn.00406180
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0
push 0x2001f
push 0
push 0
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push 0
push eax
push 0x80000002
call esi
mov edi, 0x45e158
test eax, eax
jne 0x402a54
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x4bc]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00406580
add esp, 4
push 0x452d04
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4d8]
call fcn.004063c0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
cmp eax, esi
je 0x402772
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x402749
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x414], 7
push esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.00407620
mov eax, dword [ebp - 0x4c4]
cmp eax, 8
jb 0x402790
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.00407820
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4c4], 7
mov dword [ebp - 0x4c8], 0
cmp eax, 8
jb 0x4027cf
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.00407820
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x4c0]
mov edx, 0x452d08
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e1fc], 8
mov eax, 0x45e1e8
mov edx, str.DisplayName
cmovae eax, dword [0x45e1e8]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x48c]
add esp, 4
mov edx, str.DisplayVersion
cmp dword [ebp - 0x478], 8
cmovae eax, dword [ebp - 0x48c]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x4a4]
add esp, 4
mov edx, str.Version
cmp dword [ebp - 0x490], 8
cmovae eax, dword [ebp - 0x4a4]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e19c], 8
mov eax, 0x45e188
mov edx, str.HelpLink
cmovae eax, dword [0x45e188]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e184], 8
mov eax, 0x45e170
mov edx, str.Publisher
cmovae eax, dword [0x45e170]
push eax
call fcn.00401ed0
add esp, 4
lea ecx, [ebp - 0x428]
push 0xffffffffffffffff
push 0
push 0x45e1a0
call fcn.00406f70
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x4c0]
mov edx, str.InstallLocation
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.00401ed0
add esp, 4
lea eax, [ebp - 0x4bc]
lea ecx, [ebp - 0x4f0]
push eax
call fcn.00406580
add esp, 4
push 0x452d04
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4d8]
call fcn.004063c0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
cmp eax, esi
je 0x402979
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x402950
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x414], 7
push esi
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
call fcn.00407620
mov eax, dword [ebp - 0x4c4]
cmp eax, 8
jb 0x402997
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x4c4], 7
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4c8], 0
cmp eax, 8
jb 0x4029d2
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.00407820
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov ecx, dword [ebp - 0x4c0]
mov edx, str.UninstallString
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e16c], 8
mov eax, edi
mov edx, str.URLInfoAbout
cmovae eax, dword [0x45e158]
push eax
call fcn.00401ed0
add esp, 4
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
mov bl, 1
mov eax, dword [ebp - 0x414]
cmp eax, 8
jb 0x402a4e
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00407820
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x34
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x458]
call fcn.00406ac0
push 0xffffffffffffffff
push 0
push 0x45e200
lea ecx, [ebp - 0x458]
call fcn.00406180
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0
push 0x2001f
push 0
push 0
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x402b61
cmp dword [ebp - 0x460], 8
lea eax, [ebp - 0x474]
cmovae eax, dword [ebp - 0x474]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00406430
lea ecx, [ebp - 0x410]
add esp, 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402af0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
push 0
push 0
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x4c0]
test eax, eax
mov eax, 1
movzx ebx, bl
cmove ebx, eax
mov edx, 0x452c70
cmp dword [ebp - 0x460], 8
lea eax, [ebp - 0x474]
cmovae eax, dword [ebp - 0x474]
push eax
call fcn.00401ed0
add esp, 4
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x34
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x458]
call fcn.00406ac0
push 0xffffffffffffffff
push 0
push 0x45e1e8
lea ecx, [ebp - 0x458]
call fcn.00406180
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
push 0
push 0x2001f
push 0
push 0
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x402f38
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x4bc]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00406580
add esp, 4
push 0x452d04
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4d8]
call fcn.004063c0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x402c62
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x402c39
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x42c], 7
push esi
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.00407620
mov eax, dword [ebp - 0x4c4]
cmp eax, 8
jb 0x402c80
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.00407820
xor eax, eax
mov byte [ebp - 4], 0xa
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4c4], 7
mov dword [ebp - 0x4c8], 0
cmp eax, 8
jb 0x402cbf
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.00407820
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov ecx, dword [ebp - 0x4c0]
mov edx, 0x452d08
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e1fc], 8
mov eax, 0x45e1e8
mov edx, str.DisplayName
cmovae eax, dword [0x45e1e8]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x48c]
add esp, 4
mov edx, str.DisplayVersion
cmp dword [ebp - 0x478], 8
cmovae eax, dword [ebp - 0x48c]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x4a4]
add esp, 4
mov edx, str.Version
cmp dword [ebp - 0x490], 8
cmovae eax, dword [ebp - 0x4a4]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e19c], 8
mov eax, 0x45e188
mov edx, str.HelpLink
cmovae eax, dword [0x45e188]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e184], 8
mov eax, 0x45e170
mov edx, str.Publisher
cmovae eax, dword [0x45e170]
push eax
call fcn.00401ed0
add esp, 4
lea ecx, [ebp - 0x440]
push 0xffffffffffffffff
push 0
push 0x45e1a0
call fcn.00406f70
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov ecx, dword [ebp - 0x4c0]
mov edx, str.InstallLocation
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.00401ed0
add esp, 4
lea eax, [ebp - 0x4bc]
lea ecx, [ebp - 0x4f0]
push eax
call fcn.00406580
add esp, 4
push 0x452d04
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4d8]
call fcn.004063c0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x402e69
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x402e40
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x42c], 7
push esi
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.00407620
mov eax, dword [ebp - 0x4c4]
cmp eax, 8
jb 0x402e87
inc eax
lea ecx, [ebp - 0x4d8]
push eax
push dword [ebp - 0x4d8]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x4c4], 7
mov word [ebp - 0x4d8], ax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4c8], 0
cmp eax, 8
jb 0x402ec2
inc eax
lea ecx, [ebp - 0x4f0]
push eax
push dword [ebp - 0x4f0]
call fcn.00407820
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
mov ecx, dword [ebp - 0x4c0]
mov edx, str.UninstallString
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.00401ed0
mov ecx, dword [ebp - 0x4c0]
add esp, 4
cmp dword [0x45e16c], 8
mov edx, str.URLInfoAbout
cmovae edi, dword [0x45e158]
push edi
call fcn.00401ed0
add esp, 4
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x42c]
mov bl, 1
cmp eax, 8
jb 0x402f38
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.00407820
mov eax, dword [ebp - 0x4a8]
cmp eax, 8
jb 0x402f56
inc eax
lea ecx, [ebp - 0x4bc]
push eax
push dword [ebp - 0x4bc]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x4a8], 7
mov word [ebp - 0x4bc], ax
mov eax, dword [ebp - 0x490]
mov dword [ebp - 0x4ac], 0
cmp eax, 8
jb 0x402f91
inc eax
lea ecx, [ebp - 0x4a4]
push eax
push dword [ebp - 0x4a4]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], ax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x494], 0
cmp eax, 8
jb 0x402fcc
inc eax
lea ecx, [ebp - 0x474]
push eax
push dword [ebp - 0x474]
call fcn.00407820
xor eax, eax
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x464], 0
cmp eax, 8
jb 0x403007
inc eax
lea ecx, [ebp - 0x48c]
push eax
push dword [ebp - 0x48c]
call fcn.00407820
mov ecx, dword [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x478], 7
mov dword [ebp - 0x47c], 0
mov word [ebp - 0x48c], ax
cmp ecx, 8
jb 0x403042
inc ecx
push ecx
push dword [ebp - 0x458]
lea ecx, [ebp - 0x458]
call fcn.00407820
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e8a6
mov esp, ebp
pop ebp
ret