Function at 0x4133c0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b489f
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x6319d0]
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
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x33c], ebx
mov dword [ebp - 0x338], eax
call fcn.0046d4f0
test eax, eax
je 0x413486
push 0
push str.CInstall_::_SetupForRunScenario_n
push 0x645d88
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x645d88
mov dword [0x645c88], ecx
add esp, 0xc
mov dword [0x645c8c], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413442
mov edi, 0x645c88
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413453
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x645c88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x4134ba
mov eax, dword [ebp - 0x338]
push eax
push ebx
push str.pszExeName___s__pszCommandLine___s_n
push 0x645b88
call fcn.00599ee3
add esp, 0x10
push 0x645b88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4134e8
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x328], eax
mov dword [ebp - 4], 0
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41351b
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x314], eax
push 0x5cedcc
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], 1
call fcn.00403380
mov esi, eax
push ebx
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 2
call fcn.00403380
mov edi, eax
push 0x5cd28c
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 3
call fcn.00403380
mov ecx, dword [ebp - 0x334]
push eax
add ecx, 0x4fb4
push ecx
lea edx, [ebp - 0x318]
push edx
mov byte [ebp - 4], 4
call fcn.00402910
push edi
push eax
lea eax, [ebp - 0x330]
push eax
mov byte [ebp - 4], 5
call fcn.00402910
push esi
push eax
lea ecx, [ebp - 0x320]
mov bl, 6
push ecx
mov byte [ebp - 4], bl
call fcn.00402910
add esp, 0x24
push eax
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 7
call fcn.00402af0
mov eax, dword [ebp - 0x320]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x330]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41360a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x318]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413656
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x31c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41367c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x324]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x330]
call fcn.00403380
mov esi, eax
push 0x5ce514
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 8
call fcn.00403380
mov edi, eax
mov eax, dword [ebp - 0x328]
add eax, 0xfffffff0
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x320], eax
call fcn.004022e0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x324], ebx
push edi
lea edx, [ebp - 0x324]
push edx
lea eax, [ebp - 0x32c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402910
push esi
push eax
lea ecx, [ebp - 0x31c]
push ecx
mov byte [ebp - 4], 0xb
call fcn.00402910
add esp, 0x1c
push eax
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 0xc
call fcn.00402af0
mov eax, dword [ebp - 0x31c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413777
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413797
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x318]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x330]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4137e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x328]
push 0
push esi
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x334]
add ecx, 0x4f9c
call fcn.00431ec0
test eax, eax
jne 0x41383c
call fcn.0046d4f0
test eax, eax
je 0x41383c
push esi
lea edx, [ebp - 0x114]
push edx
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push 0x645a88
call fcn.00599ee3
add esp, 0x10
push 0x645a88
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 1
push reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x118], 0
call fcn.0047c120
mov ebx, dword [ebp - 0x314]
mov esi, dword [ebx - 0xc]
test esi, esi
jns 0x413874
push 0x80070057
call fcn.00401b60
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x413897
push esi
lea ecx, [ebp - 0x314]
call fcn.00402280
mov ebx, dword [ebp - 0x314]
push esi
mov esi, dword [ebp - 0x33c]
push ebx
push esi
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x310]
call fcn.0047b0f0
test eax, eax
jne 0x4138e4
call fcn.0046d4f0
test eax, eax
je 0x4138e4
push ebx
push esi
push str.FAILED_Registry_WriteValue_:_pszExeName___s__csArg___s_n
push 0x645988
call fcn.00599ee3
add esp, 0x10
push 0x645988
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
test eax, eax
je 0x413964
push 0
push str.CInstall_::_SetupForRunScenario_n
push 0x645888
call fcn.00599ee3
mov ecx, dword [str.EXIT:]
mov edx, dword [0x5ccefc]
mov eax, 0x645888
mov dword [0x645788], ecx
add esp, 0xc
mov dword [0x64578c], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x413920
mov edi, 0x645788
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x413931
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x645788
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413984
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x320]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4139aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00599ed4
mov esp, ebp
pop ebp
ret 8