Function at 0x514540
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0xffffffffffffffff
push 0x6034d1
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0x14]
add esi, 0x14
push ebx
mov ecx, esi
call edx
mov eax, edi
call fcn.00473170
test al, al
je 0x5145a8
mov esi, dword [esp + 0x7c]
mov ecx, esi
call fcn.00472830
mov dword [esp + 0x70], ebx
mov dword [esp + 0x1c], 1
jmp 0x514841
mov eax, edi
call fcn.004221b0
mov ebp, eax
mov eax, edi
mov dword [esp + 0x20], ebp
call fcn.00473120
mov ebx, eax
mov eax, 0x745630
call fcn.00473120
lea ecx, [esp + 0x24]
push ecx
mov edx, eax
mov ecx, edi
call fcn.00472d60
mov edi, 1
mov dword [esp + 0x70], edi
mov edx, 0x745630
call fcn.00473ae0
mov byte [esp + 0x1b], al
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x24]
call fcn.004740c0
cmp byte [esp + 0x1b], 0
je 0x514620
mov eax, 0x745630
call fcn.00473120
lea edx, [ebp + eax*2]
mov eax, 0x745630
mov dword [esp + 0x20], edx
call fcn.00473120
sub ebx, eax
test bl, 1
je 0x51467f
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xe1040047
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
add eax, 4
call fcn.004221b0
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
mov ecx, esi
call eax
push eax
push 0x6cc558
call fcn.0048c8d0
mov esi, dword [esp + 0x84]
add esp, 8
mov ecx, esi
call fcn.00472830
mov dword [esp + 0x70], 0
mov dword [esp + 0x1c], edi
jmp 0x514841
mov eax, ebx
shr eax, 1
push eax
mov dword [esp + 0x2c], eax
call sub.mfc90u.dll_new_1
lea edi, [ebx - 1]
add esp, 4
mov ebp, eax
xor edx, edx
mov dword [esp + 0x2c], ebp
test edi, edi
jbe 0x514734
mov ebx, dword [esp + 0x20]
movzx eax, word [ebx + edx*2]
lea ecx, [eax - 0x30]
cmp cx, 9
ja 0x5146bc
movzx eax, ax
sub eax, 0x30
jmp 0x5146e1
lea ecx, [eax - 0x61]
cmp cx, 5
ja 0x5146cd
movzx eax, ax
sub eax, 0x57
jmp 0x5146e1
lea ecx, [eax - 0x41]
cmp cx, 5
ja 0x5146de
movzx eax, ax
sub eax, 0x37
jmp 0x5146e1
or eax, 0xffffffff
mov ecx, edx
shr ecx, 1
shl al, 4
add ecx, ebp
mov byte [ecx], al
movzx eax, word [ebx + edx*2 + 2]
lea ebx, [eax - 0x30]
cmp bx, 9
ja 0x514702
movzx eax, ax
sub eax, 0x30
jmp 0x514727
lea ebx, [eax - 0x61]
cmp bx, 5
ja 0x514713
movzx eax, ax
sub eax, 0x57
jmp 0x514727
lea ebx, [eax - 0x41]
cmp bx, 5
ja 0x514724
movzx eax, ax
sub eax, 0x37
jmp 0x514727
or eax, 0xffffffff
or byte [ecx], al
add edx, 2
cmp edx, edi
jb 0x5146a3
lea edx, [esp + 0x30]
push edx
push 1
push 0
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x5147f2
mov ecx, dword [0x741af8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00475440
mov dword [esp + 0x70], 2
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0xe1040046
mov ecx, esi
call edx
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
add eax, 4
call fcn.004221b0
push eax
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
mov edi, dword [esi]
lea ecx, [esp + 0x38]
add edi, 0x20
call fcn.00475a00
mov edx, dword [edi]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
push eax
push 0x6cc558
call fcn.0048c8d0
push ebp
call sub.mfc90u.dll_delete_1
mov esi, dword [esp + 0x88]
add esp, 0xc
mov ecx, esi
call fcn.00472830
mov dword [esp + 0x1c], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x38]
call fcn.00475600
jmp 0x514841
push ebp
call sub.mfc90u.dll_delete_1
mov eax, dword [esp + 0x38]
add esp, 4
push 0
or edi, 0xffffffff
lea esi, [esp + 0x7c]
call fcn.004728e0
mov dword [esp + 0x70], 3
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [esp + 0x7c]
call fcn.00472850
mov dword [esp + 0x1c], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x78]
call fcn.004740c0
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8