Function at 0x405088
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b9d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
push esi
push edi
mov dword [ebp - 0x3b0], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x394], 0
push 0
lea ecx, [ebp - 0x78]
call fcn.0040aec0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00481735
lea ecx, [ebp - 0x78]
call fcn.00480fc6
cmp eax, 1
je 0x405116
mov dword [ebp - 0x39c], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00481640
mov eax, dword [ebp - 0x39c]
jmp 0x40539e
push str..pdf
lea ecx, [ebp - 0x390]
push ecx
push 0x104
call fcn.00401d33
add esp, 0xc
xor edx, edx
cmp dword [0x52cbac], 0
sete dl
push edx
lea ecx, [ebp - 0x10]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x18]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00405b70
push eax
lea eax, [ebp - 0x390]
push eax
lea ecx, [ebp + 8]
call fcn.00405b70
push eax
call fcn.0040b271
mov dword [ebp - 0x394], eax
cmp dword [ebp - 0x394], 0
jne 0x40522b
push str.Authorization_failed__this_PDF_file_contains_an_unknown_user_password__would_you_like_to_search_the_user_password_now_
lea ecx, [ebp - 0x398]
call fcn.0048166a
mov byte [ebp - 4], 2
push 0
push 4
lea ecx, [ebp - 0x398]
call fcn.00405b70
push eax
call fcn.0048706f
cmp eax, 6
jne 0x4051ec
mov dword [ebp - 0x3a0], 0xfffffffc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x398]
call fcn.00481640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00481640
mov eax, dword [ebp - 0x3a0]
jmp 0x40539e
mov dword [ebp - 0x3a4], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x398]
call fcn.00481640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00481640
mov eax, dword [ebp - 0x3a4]
jmp 0x40539e
mov ecx, 6
mov esi, 0x49ebec
lea edi, [ebp - 0x28c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x28c]
push edx
push 6
push 0x52caa0
push 0x52caa4
push 0
lea ecx, [ebp - 0x270]
call fcn.0047ebad
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x270]
call fcn.0047ed0f
cmp eax, 1
je 0x4052b7
mov dword [ebp - 0x3a8], 0xfffffffb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00405e10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00481640
mov eax, dword [ebp - 0x3a8]
jmp 0x40539e
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x270]
call fcn.0047edea
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x390]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x390]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
call fcn.004059b5
add esp, 4
mov eax, dword [0x52cbac]
push eax
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
call fcn.00401b14
add esp, 0xc
lea ecx, [ebp - 0x274]
call fcn.00405b70
push eax
call fcn.00401ba4
add esp, 4
mov dword [ebp - 0x3ac], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.00481640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x270]
call fcn.00405e10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00405f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00481640
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4