Function at 0x415290
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c466
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, ebx
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4152e0
sub esi, ecx
inc esi
push esi
push 0
mov dword [ebp - 0xe8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push ebx
push eax
mov dword [ebp - 0xe4], eax
call fcn.0046abe0
add esp, 0xc
mov dword [ebp - 0x20], 0x25
push 0x25
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x25
push str.5B1674C0_22B8_411D_BD44_56BD4689568B
push eax
mov dword [ebp - 0x1c], eax
call fcn.0046abe0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, 1
mov eax, dword [ebp - 0x1c]
sete bl
test eax, eax
je 0x415361
push eax
call esi
mov eax, dword [ebp - 0xe4]
test eax, eax
je 0x41536e
push eax
call esi
test bl, bl
jne 0x4153bb
sub esp, 8
lea ecx, [ebp - 0x1a0]
call fcn.00403750
mov dword [ebp - 0xf0], 4
mov dword [ebp - 0xec], str.SetupRunPath::Set
mov edx, str.encrypt_failed
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.00407bd0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], bl
call fcn.00402230
jmp 0x4154e8
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00415510
add esp, 4
push 0xa8
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0046d1b0
push str..__install_path
lea ecx, [ebp - 0xe0]
call fcn.004100b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x8c], 0
jne 0x415404
xor bl, bl
jmp 0x415455
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xe0]
call fcn.00407170
lea ecx, [ebp - 0xdc]
call fcn.004103f0
test eax, eax
jne 0x415453
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x415441
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x415453
push 0
call fcn.0040e060
mov bl, 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.0040f840
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.00451cf2
add esp, 4
cmp dword [ebp - 0x24], 0x10
jb 0x4154d6
push dword [ebp - 0x38]
call fcn.00466e37
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4154f2
push eax
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret