Function at 0x409390
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4810df
push eax
mov dword fs:[0], esp
sub esp, 0x71c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00441cf0
test eax, eax
je 0x40944b
push 0
lea eax, [esp + 0x34]
push str.CInstall_::_SetupForRunScenario_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x130]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x130]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x409487
mov ecx, dword [esp + 0x740]
mov edx, dword [esp + 0x73c]
push ecx
push edx
lea eax, [esp + 0x38]
push str.pszExeName___s__pszCommandLine___s_n
push eax
call fcn.00465850
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
lea edx, [esp + 0x230]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4a6844]
mov dword [esp + 0x14], eax
mov dword [esp + 0x734], 0
mov dword [esp + 0x10], eax
mov bl, 1
push str..EXE
lea ecx, [esp + 0x2c]
mov byte [esp + 0x738], bl
call fcn.00475f16
mov esi, eax
mov eax, dword [esp + 0x73c]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x738], 2
call fcn.00475f16
mov edi, eax
push 0x49b19c
lea ecx, [esp + 0x20]
mov byte [esp + 0x738], 3
call fcn.00475f16
lea ecx, [ebp + 0x3fc]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x740], 4
call fcn.0047608b
push edi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x73c], 5
push eax
call fcn.0047608b
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x740], 6
call fcn.0047608b
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x738], 7
call fcn.00475f95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x734], 6
call fcn.00475ea8
lea ecx, [esp + 0x24]
mov byte [esp + 0x734], 5
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 4
call fcn.00475ea8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x734], 3
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x734], 2
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x734], bl
call fcn.00475ea8
mov edx, dword [esp + 0x740]
lea ecx, [esp + 0x24]
push edx
call fcn.00475f16
mov esi, eax
mov byte [esp + 0x734], 8
push 0x49bf94
lea ecx, [esp + 0x24]
call fcn.00475f16
mov edi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x738], 9
call fcn.00475c1d
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x740], 0xa
call fcn.0047608b
push esi
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x740], 0xb
call fcn.0047608b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x738], 0xc
call fcn.00475f95
lea ecx, [esp + 0x28]
mov byte [esp + 0x734], 0xb
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x734], 0xa
call fcn.00475ea8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x734], 9
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 8
call fcn.00475ea8
lea ecx, [esp + 0x24]
mov byte [esp + 0x734], bl
call fcn.00475ea8
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x234]
push eax
push ecx
lea ecx, [ebp + 0x378]
call fcn.00418dc0
test eax, eax
jne 0x4096dd
call fcn.00441cf0
test eax, eax
je 0x4096dd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x230]
push edx
push eax
lea ecx, [esp + 0x38]
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push ecx
call fcn.00465850
add esp, 0x10
lea edx, [esp + 0x30]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
push 0x80000002
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x53c]
call fcn.0044cdb0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
push eax
call fcn.0047628c
mov esi, dword [esp + 0x740]
push eax
lea ecx, [esp + 0x540]
push esi
push ecx
lea ecx, [esp + 0x544]
call fcn.0044d360
test eax, eax
jne 0x409758
call fcn.00441cf0
test eax, eax
je 0x409758
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push esi
push str.FAILED_Registry_WriteValue_:_pszExeName___s__csArg___s_n
push eax
call fcn.00465850
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441cf0
test eax, eax
je 0x4097f8
push 0
lea edx, [esp + 0x438]
push str.CInstall_::_SetupForRunScenario_n
push edx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x334]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x334]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x434]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x334]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0x10]
mov byte [esp + 0x734], 0
call fcn.00475ea8
lea ecx, [esp + 0x14]
mov dword [esp + 0x734], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x72c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x728
ret 8