Function at 0x403e40
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429376
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x43606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x248]
call fcn.00406480
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, ds:[ebp - 0x27c]
test eax, eax
je 0x403f0e
push 0x431d58
call fcn.00406480
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.00403c40
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x40419a
mov edx, dword ds:[ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404190
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041ef
jmp 0x404190
lea eax, [ebp - 0x218]
push eax
call fcn.00406480
push ecx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.004071e0
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x403f73
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f4
push ecx
push edx
call fcn.00411d37
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
push ecx
lea edx, [ebp - 0x260]
mov dword [ebp - 0x268], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x27c], ax
call fcn.004070a0
add esp, 4
push 0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push ecx
cmovae eax, dword [ebp - 0x248]
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
test eax, eax
jne 0x404097
mov eax, dword ds:[ebp - 0x220]
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UpdateCheck
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404089
push 0x431dd8
lea ecx, [ebp - 0x27c]
call fcn.00406480
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 6
call fcn.00403c40
mov ecx, dword [ebp - 0x268]
cmp ecx, 8
jb 0x404089
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40407f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f9
push ecx
push edx
call fcn.00411d37
add esp, 8
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4040fa
push 0x431e08
lea ecx, [ebp - 0x27c]
call fcn.00406480
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00403c40
mov ecx, dword ds:[ebp - 0x268]
cmp ecx, 8
jb 0x4040fa
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4040f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041fe
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x40413a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404130
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404205
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword ds:[ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp ecx, 8
jb 0x40419a
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404205
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x4041d6
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4041cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404205
push ecx
push edx
call fcn.00411d37
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411993
mov esp, ebp
pop ebp
ret
call fcn.00417e98
call fcn.00417e98
call fcn.00417e98
nop
call fcn.00417e98
call fcn.00417e98
int3