Function at 0x570ac0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1324
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x606040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xf4], ebx
push eax
mov dword [ebp - 0xc4], 0
call dword [sym.imp.SUCMLIB.dll__NEW_ISM_MAKEPDF_PARAM_4]
mov esi, dword [sym.imp.SUCMLIB.dll__NEW_EncryptPassword_4]
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xdc], 0
call esi
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0
push eax
call esi
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x570b88
cmp eax, 0x3fffffff
jbe 0x570b7c
push str.vector_T__too_long
call fcn.00568fe7
push eax
lea ecx, [ebp - 0x100]
call fcn.004024e0
mov eax, dword [ebx + 0x78]
sub eax, 0x10
push eax
call fcn.004039f0
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0xc8], edi
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov esi, dword [ebx + 0x7c]
jge 0x570bd1
push 0x104
lea ecx, [ebp - 0xc8]
call fcn.00402400
mov edi, dword [ebp - 0xc8]
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [edi - 8]
push edi
call fcn.005360d5
add esp, 8
test eax, eax
js 0x57122f
cmp eax, dword [edi - 8]
jg 0x57122f
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea ecx, [ebp - 0xcc]
push 0x5dbfa4
call fcn.00402cd0
mov byte [ebp - 4], 3
mov al, byte [ebx + 0x9c]
test al, al
je 0x570c38
push 0x5fd720
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 2
push eax
call fcn.00539115
cmp word [ebx + 0x80], 0xffff
jne 0x570c98
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x570c98
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x570c86
push 0x5fd720
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x3b
push eax
call fcn.00539115
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xcc]
call fcn.0058f980
mov ecx, dword [ebp - 0xc4]
push dword [ebx + 0x70]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc4]
push dword [ebx + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0xcc]
lea edx, [ebx + 0x78]
cmp dword [eax - 0xc], 0
je 0x570cc9
lea edx, [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
push dword [edx]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0xc4]
push dword [ebx + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x80]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov ecx, dword [ebp - 0xc4]
push dword [ebx + 0x84]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x88]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x8a]
push eax
mov edx, dword [ecx]
call dword [edx + 0x40]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x8c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x8e]
push eax
mov edx, dword [ecx]
call dword [edx + 0x50]
mov ecx, dword [ebp - 0xc4]
movzx eax, word [ebx + 0x90]
push eax
mov edx, dword [ecx]
call dword [edx + 0x58]
mov al, byte [ebx + 0x9c]
test al, al
je 0x570d8c
push 0x5fd720
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 2
push eax
call fcn.00539115
push 0x42
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.00539180
add esp, 0xc
lea eax, [ebp - 0xa8]
push dword [ebx + 0x94]
push 0x21
push eax
call fcn.005363c5
mov ecx, dword [ebp - 0xdc]
lea edx, [ebp - 0xa8]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc4]
push dword [ebp - 0xdc]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, 0x42
lea eax, [ebp - 0xa8]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x570de4
push 0x42
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.00539180
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebx + 0x98]
push 0x21
push eax
call fcn.005363c5
mov ecx, dword [ebp - 0xd8]
lea edx, [ebp - 0x60]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc4]
push dword [ebp - 0xd8]
mov eax, dword [ecx]
call dword [eax + 0x68]
mov ecx, 0x42
lea eax, [ebp - 0x60]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x570e38
mov esi, dword [ebx + 0xa0]
mov esi, dword [esi]
cmp esi, dword [ebx + 0xa0]
je 0x570f48
mov al, byte [ebx + 0x9c]
test al, al
je 0x570e7a
push 0x5fd720
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 2
push eax
call fcn.00539115
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
push eax
call dword [sym.imp.SUCMLIB.dll__NEW_ISM_MAKEPDF_PAGE_PARAM_4]
lea eax, [ebp - 0xc0]
lea ecx, [esi + 8]
push eax
call fcn.0057bc80
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 8
jb 0x570eae
mov edx, dword [edx]
mov ecx, dword [ebp - 0xd4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xac], 8
jb 0x570ed5
push dword [ebp - 0xc0]
call fcn.0040a426
add esp, 4
mov ecx, dword [ebp - 0xd4]
xor eax, eax
push dword [esi + 0x7c]
mov word [ebp - 0xc0], ax
mov dword [ebp - 0xac], 7
mov eax, dword [ecx]
mov dword [ebp - 0xb0], 0
call dword [eax + 0x10]
mov ecx, dword [ebp - 0xd4]
movzx eax, word [esi + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [ebp - 0xd4]
movzx eax, word [esi + 0x18]
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [ebp - 0xc4]
push dword [ebp - 0xd4]
mov eax, dword [ecx]
call dword [eax + 0x78]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x100]
call fcn.00404cb0
jmp 0x570e47
mov eax, dword [ebx + 0x2c]
xor esi, esi
push dword [ebp - 0xc4]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xec], esi
mov ecx, dword [eax + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x570f84
mov ecx, dword [ebp - 0xd0]
mov ecx, dword [ecx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x14]
movzx esi, al
mov dword [ebp - 0xec], esi
mov al, byte [ebx + 0x9c]
test al, al
je 0x570fe2
test esi, esi
jne 0x570fdb
mov ecx, dword [ebp - 0xc4]
mov eax, dword [ecx]
call dword [eax + 0x7c]
movzx eax, ax
mov ebx, eax
cmp esi, ebx
jge 0x570fdb
mov ecx, dword [ebp - 0xc4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x80]
mov edx, eax
test edx, edx
je 0x570fd8
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x570fc0
sub ecx, edi
sar ecx, 1
je 0x570fd8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
jmp 0x570fa2
mov esi, 2
jmp 0x570fe6
test esi, esi
je 0x570ffd
push 0x5fd720
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], esi
push eax
call fcn.00539115
push dword [ebp - 0xcc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5711b6
mov eax, dword [ebp - 0xcc]
add eax, 0xfffffff0
push eax
call fcn.004039f0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xf0], esi
mov byte [ebp - 4], 5
mov ecx, 1
mov eax, dword [ebx + 0x7c]
sub ecx, dword [esi - 4]
mov dword [ebp - 0xd0], eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x571063
push 0x104
lea ecx, [ebp - 0xf0]
call fcn.00402400
mov esi, dword [ebp - 0xf0]
push dword [ebp - 0xd0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [esi - 8]
push esi
call fcn.005360d5
add esp, 8
test eax, eax
js 0x57122f
cmp eax, dword [esi - 8]
jg 0x57122f
xor ecx, ecx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5710aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xd0], eax
cmp eax, 0xffffffff
je 0x571160
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xd0]
mov dword [ebp - 0xe4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xe4]
cmp eax, 0xffffffff
je 0x571160
mov dword [ebp - 0xe4], eax
fild dword [ebp - 0xe4]
test eax, eax
jns 0x57110e
fadd qword [0x5df320]
fstp qword [ebp - 0xe8]
fld qword [ebp - 0xe8]
sub esp, 8
fld qword [0x5df2c8]
mov ecx, dword [ebx + 0x78]
fmul st(1), st(0)
fmulp st(1)
fstp qword [esp]
call fcn.0058fa60
add esp, 8
test al, al
jne 0x571154
push 0x5fd720
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x40
push eax
call fcn.00539115
mov edi, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xf0]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x571198
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
push 0x5fd720
sbb eax, eax
and eax, 0xffffffe2
add eax, 0x40
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
push eax
call fcn.00539115
add esi, 0xfffffff0
mov byte [ebp - 4], 3
or eax, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x5711b6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [ebx + 0x80], 0xffff
je 0x571320
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5711ee
push 0x104
lea ecx, [ebp - 0xc8]
call fcn.00402400
mov edi, dword [ebp - 0xc8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [edi - 8]
push edi
call fcn.005360d5
add esp, 8
test eax, eax
js 0x57122f
cmp eax, dword [edi - 8]
jg 0x57122f
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
call fcn.0040a74d
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x571239
push 0x80004005
call fcn.00401e70
push 0x80070057
call fcn.00401e70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x104], eax
push str..pdf
mov byte [ebp - 4], 6
movsx eax, word [ebx + 0x80]
push eax
push 4
push edi
lea eax, [ebp - 0x104]
push str._s__0d_s
push eax
call fcn.00404210
mov esi, dword [ebp - 0x104]
add esp, 0x18
push dword [esi - 8]
push esi
call fcn.005360d5
add esp, 8
test eax, eax
js 0x57122f
cmp eax, dword [esi - 8]
jg 0x57122f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esi - 0x10]
lea ecx, [edi - 0x10]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xe4], ecx
cmp edx, ecx
je 0x571305
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x5712ea
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x5712ea
push edx
call fcn.004039f0
add esp, 4
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x5712df
mov edx, dword [ebp - 0xe4]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [esi + 0x10]
mov dword [ebp - 0xc8], edi
jmp 0x5712ff
push dword [esi - 0xc]
lea ecx, [ebp - 0xc8]
push esi
call fcn.00403930
mov edi, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xd0]
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x571320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xc8]
lea ecx, [ebx + 0x68]
push eax
call fcn.00403360
call fcn.0041a0c0
push edi
push 0
push 0x465
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x6c], 0
mov dword [ebp - 4], 2
jmp 0x57138e
push dword [ebp - 0xcc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5713a9
mov ecx, dword [ebp - 0xcc]
call fcn.0058fae0
mov esi, dword [ebp - 0x100]
cmp esi, dword [ebp - 0xfc]
je 0x5713cf
push esi
call dword [sym.imp.SUCMLIB.dll__DELETE_ISM_MAKEPDF_PAGE_PARAM_4]
mov dword [esi], 0
add esi, 4
cmp esi, dword [ebp - 0xfc]
jne 0x5713b7
mov esi, dword [sym.imp.SUCMLIB.dll__DELETE_EncryptPassword_4]
lea eax, [ebp - 0xdc]
push eax
call esi
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xdc], 0
push eax
call esi
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xd8], 0
push eax
call dword [sym.imp.SUCMLIB.dll__DELETE_ISM_MAKEPDF_PARAM_4]
mov eax, dword [ebx + 0x94]
lea esi, [ebx + 0x94]
mov dword [ebp - 0xc4], 0
mov eax, dword [eax - 0xc]
mov dword [ebp - 0xf4], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x571439
push dword [eax - 0xc]
mov ecx, esi
call fcn.00402570
mov ecx, dword [ebp - 0xf4]
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
test ecx, ecx
je 0x571459
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x571450
mov eax, dword [esi]
test eax, eax
jne 0x571463
xor ecx, ecx
jmp 0x571479
push dword [eax - 8]
push eax
call fcn.005360d5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x57122f
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x57122f
mov dword [eax - 0xc], ecx
add ebx, 0x98
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [ebx]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x5714a8
push esi
mov ecx, ebx
call fcn.00402570
mov eax, dword [ebx]
lea ecx, [esi*2 + 2]
test ecx, ecx
je 0x5714be
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x5714b5
mov eax, dword [ebx]
test eax, eax
jne 0x5714c8
xor ecx, ecx
jmp 0x5714de
push dword [eax - 8]
push eax
call fcn.005360d5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x57122f
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x57122f
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
mov word [eax + ecx*2], dx
mov ecx, ebx
mov edx, dword [ebp - 0xcc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x57151a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x571535
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x100]
test esi, esi
je 0x571548
push esi
call fcn.0040a426
add esp, 4
mov eax, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00535334
mov esp, ebp
pop ebp
ret