Function at 0x401730
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x48a0ab
push eax
mov eax, 0x142c
mov dword fs:[0], esp
call fcn.0046b1b0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xc3d]
mov byte [esp + 0xc3c], bl
mov byte [esp + 0x12c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x230], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x231]
mov ebp, dword [esp + 0x144c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp ebp, ebx
stosb byte es:[edi], al
je 0x4019f2
cmp byte [ebp], bl
je 0x4019f2
mov edx, dword [esp + 0x1450]
cmp edx, ebx
je 0x4019f2
cmp byte [edx], bl
je 0x4019f2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x438]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x234]
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call esi
cmp eax, 0xffffffff
je 0x4019f2
lea ecx, [esp + 0x12c]
push str..pdf
push ecx
push 0x104
call fcn.00401ce0
add esp, 0xc
lea edx, [esp + 0x12c]
push ebx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x28]
push str..pdf
push eax
push 0x104
call fcn.00401ce0
add esp, 0xc
lea ecx, [esp + 0x438]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xa3c]
lea eax, [esp + 0xb3c]
push edx
lea ecx, [esp + 0x540]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x444]
push edx
push eax
call fcn.0046b2c2
push str..dll
lea ecx, [esp + 0x554]
push str.pdfsdk
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x354]
push edx
push eax
call fcn.0046b231
add esp, 0x28
lea ecx, [esp + 0x334]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4019f2
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x28]
push edx
call ebp
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x63d]
mov byte [esp + 0x63c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x63c]
push str.pdfcore.dll
push eax
call fcn.00401430
add esp, 8
lea ecx, [esp + 0x63c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4019f2
lea edx, [esp + 0x28]
lea eax, [esp + 0x63c]
push edx
lea ecx, [esp + 0x130]
push eax
lea edx, [esp + 0x33c]
push ecx
push edx
lea eax, [esp + 0xc4c]
push str.__s____s__stamp___s__output___s_
push eax
call fcn.0046b1df
add esp, 0x18
lea ecx, [esp + 0x28]
push ecx
call ebp
mov dl, byte [esp + 0x17]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc3c]
push eax
push ecx
mov dword [esp + 0x144c], ebx
call fcn.004014a0
add esp, 8
lea edx, [esp + 0x28]
push edx
call esi
cmp eax, 0xffffffff
jne 0x401a19
lea eax, [esp + 0x12c]
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x4019f2
mov al, byte [ecx - 1]
cmp al, bl
je 0x401a0d
cmp al, 0xff
je 0x401a0d
dec al
mov byte [ecx - 1], al
xor eax, eax
mov ecx, dword [esp + 0x143c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1438
ret
dec ecx
push ecx
call fcn.0047f3fb
add esp, 4
jmp 0x4019f2
lea edx, [esp + 0x230]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00476220
add esp, 8
test eax, eax
je 0x401a46
lea ecx, [esp + 0x230]
push ebx
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x12c]
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x401a83
mov al, byte [ecx - 1]
cmp al, bl
je 0x401a79
cmp al, 0xff
je 0x401a79
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4019f4
dec ecx
push ecx
call fcn.0047f3fb
add esp, 4
mov eax, 1
jmp 0x4019f4