Function at 0x42f684
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17b0
call fcn.0060f180
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x22f3], 0
push esi
push edi
jne 0x42f6b5
push ebx
mov edx, str.Open_a_PDF_to_use_editing_features
mov eax, 0x3e8
call fcn.00424541
jmp 0x42f915
mov edx, ebx
call fcn.00431411
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
je 0x42f915
call fcn.00461f9f
test al, al
je 0x42f915
mov eax, dword [esi + 0x21]
test eax, eax
mov dword [ebp + 8], eax
je 0x42f915
call fcn.00484ff2
test al, al
je 0x42f6fd
push 0xd
push ebx
call fcn.00477a3d
test al, al
je 0x42f915
mov eax, dword [ebx + 4]
push str.Owner_password_is_required_to_remove_encryption
push eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x5a4]
call fcn.004171dd
test al, al
je 0x42f915
cmp byte [esi + 0xb0e], 0
lea edx, [esi + 0xb0f]
jne 0x42f72e
lea edx, [esi + 0x59]
push str._no_encrypt.pdf
lea edi, [ebp - 0x39c]
call fcn.00537573
xor eax, eax
push str..pdf
push 0x63fb1c
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.0045a2a2
xor esi, esi
lea eax, [ebp - 0x9bc]
push eax
push esi
push esi
push 5
push esi
mov word [ebp - 0x9bc], si
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x9bc]
push ecx
push str.Save_As
mov ecx, edi
push ecx
push eax
mov eax, 0x63c580
call fcn.00536d77
test al, al
je 0x42f90c
lea ecx, [ebx + 0x25af]
call fcn.0048e959
cmp eax, esi
je 0x42f7b2
call fcn.004448f5
mov edi, dword [ebx + 4]
push str.Removing_encryption
lea eax, [ebp - 0x194]
call fcn.0040d84a
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0xa6]
push eax
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x7b4]
call fcn.00461fb0
lea esi, [ebp - 0x17ac]
call fcn.00463393
movzx eax, word [ebp - 0x5a4]
xor esi, esi
xor edx, edx
cmp word [ebp - 0x5a4], si
mov byte [ebp - 0xfec], 1
lea ecx, [ebp - 0x5a2]
je 0x42f828
cmp edx, 0x103
jae 0x42f828
mov word [ebp + edx*2 - 0xfeb], ax
movzx eax, word [ecx]
inc edx
inc ecx
inc ecx
cmp ax, si
jne 0x42f80d
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x7b0]
push eax
lea eax, [ebp - 0xa6]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x17ac]
mov word [ebp + edx*2 - 0xfeb], si
call fcn.00463425
cmp dword [ebp + 8], esi
je 0x42f890
cmp dword [ebp + 8], 2
jne 0x42f8eb
lea eax, [ebp - 0x39c]
push eax
call fcn.005372a1
test al, al
mov eax, str.The_file_is_in_use_by_another_application._nPlease_close_the_application_to_save_your_PDF.
jne 0x42f87d
mov eax, str.Failed_to_remove_encryption
push str.Removing_encryption
push eax
push dword [ebp - 0x190]
call fcn.0040d4a6
jmp 0x42f8eb
lea ecx, [ebp - 0x39c]
lea eax, [ebp - 0xdcc]
call fcn.00401b1a
lea eax, [ebp - 0xdcc]
push eax
push str.Remove_encryption_complete._Created_file:__s
mov eax, 0x104
lea edi, [ebp - 0xbc4]
call fcn.005383cd
pop ecx
pop ecx
mov eax, edi
push eax
mov eax, ebx
call fcn.004356b1
add ebx, 0x2c61
push ebx
lea eax, [ebp - 0x39c]
call fcn.00401050
call fcn.00484ff2
test al, al
je 0x42f8eb
push 0xd
call fcn.00477a85
lea esi, [ebp - 0x17ac]
call fcn.0042f91c
lea eax, [ebp - 0x7b4]
call fcn.00462026
lea eax, [ebp - 0x194]
call fcn.0040d8e1
push dword [ebp - 0x10]
call fcn.005f858a
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4