Function at 0x409590
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48d3cf
push eax
mov dword fs:[0], esp
sub esp, 0x71c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0044bde0
test eax, eax
je 0x40964b
push 0
lea eax, [esp + 0x34]
push str.CInstall_::_SetupForRunScenario_n
push eax
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x130]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
test eax, eax
je 0x409687
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.00471c30
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
lea edx, [esp + 0x230]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x4b538c]
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.004822f6
mov esi, eax
mov eax, dword [esp + 0x73c]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x738], 2
call fcn.004822f6
mov edi, eax
push 0x4a919c
lea ecx, [esp + 0x20]
mov byte [esp + 0x738], 3
call fcn.004822f6
lea ecx, [ebp + 0x18f4]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x740], 4
call fcn.0048246b
push edi
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x73c], 5
push eax
call fcn.0048246b
push esi
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x740], 6
call fcn.0048246b
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x738], 7
call fcn.00482375
lea ecx, [esp + 0x2c]
mov byte [esp + 0x734], 6
call fcn.00482288
lea ecx, [esp + 0x24]
mov byte [esp + 0x734], 5
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 4
call fcn.00482288
lea ecx, [esp + 0x1c]
mov byte [esp + 0x734], 3
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x734], 2
call fcn.00482288
lea ecx, [esp + 0x28]
mov byte [esp + 0x734], bl
call fcn.00482288
mov edx, dword [esp + 0x740]
lea ecx, [esp + 0x24]
push edx
call fcn.004822f6
mov esi, eax
mov byte [esp + 0x734], 8
push 0x4a9fa4
lea ecx, [esp + 0x24]
call fcn.004822f6
mov edi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x738], 9
call fcn.00481ffd
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x740], 0xa
call fcn.0048246b
push esi
lea edx, [esp + 0x2c]
push eax
push edx
mov byte [esp + 0x740], 0xb
call fcn.0048246b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x738], 0xc
call fcn.00482375
lea ecx, [esp + 0x28]
mov byte [esp + 0x734], 0xb
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x734], 0xa
call fcn.00482288
lea ecx, [esp + 0x1c]
mov byte [esp + 0x734], 9
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x734], 8
call fcn.00482288
lea ecx, [esp + 0x24]
mov byte [esp + 0x734], bl
call fcn.00482288
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x234]
push eax
push ecx
lea ecx, [ebp + 0x1850]
call fcn.0041b5a0
test eax, eax
jne 0x4098dd
call fcn.0044bde0
test eax, eax
je 0x4098dd
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.00471c30
add esp, 0x10
lea edx, [esp + 0x30]
push edx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
push 0x80000002
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x53c]
call fcn.00457c00
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [eax - 8]
push eax
push eax
call fcn.0048266c
mov esi, dword [esp + 0x740]
push eax
lea ecx, [esp + 0x540]
push esi
push ecx
lea ecx, [esp + 0x544]
call fcn.004581b0
test eax, eax
jne 0x409958
call fcn.0044bde0
test eax, eax
je 0x409958
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.00471c30
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
test eax, eax
je 0x4099f8
push 0
lea edx, [esp + 0x438]
push str.CInstall_::_SetupForRunScenario_n
push edx
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0x10]
mov byte [esp + 0x734], 0
call fcn.00482288
lea ecx, [esp + 0x14]
mov dword [esp + 0x734], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x72c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x728
ret 8