Function at 0x404eb0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8313
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
mov eax, dword [0x510918]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [0x513098]
and eax, 0x1f
cmp al, 0x1f
jne 0x404f9e
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x44], al
mov edx, str.Check_autorun_registration
lea ecx, [esp + 0x90]
mov dword [esp + 0xd0], eax
call fcn.00428ebb
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xdc], 1
call fcn.00402a00
mov byte [esp + 0xd0], 0
cmp dword [esp + 0xa4], 8
jb 0x404f69
push dword [esp + 0x90]
call fcn.004a295f
add esp, 4
lea eax, [esp + 0x2c]
push eax
push eax
push 0x30
push str.Elements::EnsureAutorunRegistration
push 0x1f
call fcn.00428590
add esp, 0x14
mov dword [esp + 0xd0], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x404f9e
push dword [esp + 0x2c]
call fcn.004a295f
add esp, 4
xor eax, eax
xor ecx, ecx
cmp word [str.SoftwareMicrosoftWindowsCurrentVersionRun], cx
mov word [esp + 0x60], ax
mov eax, 0x2d
cmove eax, ecx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
call fcn.00402f90
mov dword [esp + 0xd0], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xd4], 3
push SHChangeNotifyRegister
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
call fcn.0042931b
mov byte [esp + 0xd0], 6
cmp dword [esp + 0x74], 8
jb 0x40503e
push dword [esp + 0x60]
call fcn.004a295f
add esp, 4
xor eax, eax
xor ecx, ecx
cmp word [0x4ea70c], cx
mov word [esp + 0x60], ax
mov dword [esp + 0x58], eax
mov word [esp + 0x48], ax
mov eax, 0xe
cmove eax, ecx
push eax
push 0x4ea70c
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov dword [esp + 0x64], 7
call fcn.00402f90
sub esp, 0x18
mov eax, esp
mov byte [esp + 0xe8], 7
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x34]
call fcn.00429956
mov byte [esp + 0xd0], 9
cmp dword [esp + 0x5c], 8
jb 0x4050d7
push dword [esp + 0x48]
call fcn.004a295f
add esp, 4
xor eax, eax
push 0x1e
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
setne al
xor edx, edx
test al, al
setne dl
lea ecx, [esp + 0x90]
call fcn.00421350
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xd4], 0xa
call fcn.00404e30
add esp, 4
push str.__auto
mov edx, eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0xb
call fcn.00405750
add esp, 4
cmp dword [esp + 0x74], 8
jb 0x405153
push dword [esp + 0x60]
call fcn.004a295f
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
mov byte [esp + 0xd0], 0xe
cmp dword [esp + 0xa4], 8
jb 0x40518b
push dword [esp + 0x90]
call fcn.004a295f
add esp, 4
xor eax, eax
push 1
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
call fcn.004a1849
mov esi, eax
mov dword [esp + 0x14], esi
mov eax, esp
mov byte [esp + 0xd4], 0xf
mov dword [eax], esi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea edx, [esp + 0x7c]
lea ecx, [esp + 0xac]
call fcn.004057e0
add esp, 4
test al, al
mov byte [esp + 0xd0], 0xe
mov eax, dword [esi]
mov ecx, esi
sete bl
call dword [eax + 8]
test eax, eax
je 0x4051fe
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
test bl, bl
je 0x4053b0
mov eax, dword [0x513098]
and eax, 0x1f
cmp al, 0x1f
jne 0x4052fa
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x44], al
mov edx, str.Updating_autorun_registration._Current_path:
lea ecx, [esp + 0x48]
mov byte [esp + 0xd0], 0x10
call fcn.00428ebb
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xdc], 0x11
call fcn.00402a00
mov byte [esp + 0xd0], 0x10
cmp dword [esp + 0x5c], 8
jb 0x405278
push dword [esp + 0x48]
call fcn.004a295f
add esp, 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [esp + 0x50], ax
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
call fcn.00402a00
push 0xd
push str.__preferred:
lea ecx, [esp + 0x34]
call fcn.00404c90
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x38]
call fcn.00402a00
lea eax, [esp + 0x2c]
push eax
push eax
push 0x38
push str.Elements::EnsureAutorunRegistration
push 0x1f
call fcn.00428590
add esp, 0x14
mov byte [esp + 0xd0], 0xe
cmp dword [esp + 0x40], 8
jb 0x4052fa
push dword [esp + 0x2c]
call fcn.004a295f
add esp, 4
push 0x4ea70c
lea ecx, [esp + 0x4c]
call fcn.00403110
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd8], 0x12
call fcn.004295b3
test al, al
sete bl
mov byte [esp + 0xd0], 0xe
cmp dword [esp + 0x5c], 8
jb 0x405343
push dword [esp + 0x48]
call fcn.004a295f
add esp, 4
test bl, bl
je 0x4053b0
mov eax, dword [0x513098]
and eax, 3
cmp al, 3
jne 0x4053b0
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x44], al
push 0x16
push str.Cant_register_autorun
lea ecx, [esp + 0x34]
mov byte [esp + 0xd8], 0x13
call fcn.00404c90
lea eax, [esp + 0x2c]
push eax
push eax
push 0x3a
push str.Elements::EnsureAutorunRegistration
push 3
call fcn.00428590
add esp, 0x14
cmp dword [esp + 0x40], 8
jb 0x4053b0
push dword [esp + 0x2c]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x8c], 8
jb 0x4053c6
push dword [esp + 0x78]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0xbc], 8
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
jb 0x4053fc
push dword [esp + 0xa8]
call fcn.004a295f
add esp, 4
xor eax, eax
mov word [esp + 0xa8], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
test eax, eax
je 0x40542b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004a2964
mov esp, ebp
pop ebp
ret