Function at 0x692260
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72c0cd
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xac], ebx
test ebx, ebx
je 0x692b83
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6922a7
sub ecx, edx
sar ecx, 1
je 0x692b83
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x692304
mov ecx, dword [0x7f7170]
test ecx, ecx
je 0x6922e3
mov eax, dword [ecx]
push 0x7425a0
push str.IDS_TAG_UPDATE_FAILED
call dword [eax + 8]
jmp 0x6922e8
mov eax, 0x790eb0
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x2004]
push 0x400
push eax
call fcn.006b8928
add esp, 0x10
jmp 0x692b83
test al, 0x10
jne 0x692b83
test al, 1
je 0x69232b
mov ecx, dword [0x7f7170]
test ecx, ecx
je 0x6922e3
mov eax, dword [ecx]
push 0x7425a0
push 0x7546f0
call dword [eax + 8]
jmp 0x6922e8
lea ecx, [ebp - 0xdc]
call fcn.00690b70
push 0x272
push ebx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0
call fcn.00690df0
cmp dword [ebp - 0xdc], 0
je 0x692393
mov ecx, dword [0x7f7170]
test ecx, ecx
je 0x692372
mov eax, dword [ecx]
push 0x7425a0
push 0x7623a4
call dword [eax + 8]
jmp 0x692377
mov eax, 0x790eb0
push 0xffffffffffffffff
push eax
lea eax, [edi + 0x2004]
push 0x400
push eax
call fcn.006b8928
add esp, 0x10
jmp 0x692b71
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x6923a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6923a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 0x1a]
push eax
call fcn.006b6815
mov esi, eax
add esp, 4
mov dword [ebp - 0xa8], esi
test esi, esi
je 0x692b71
push str..tmpfileinfo
push ebx
push 0x788ab4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x692400
push esi
call fcn.006b31f8
add esp, 4
jmp 0x692b71
push 1
push 0
sub esp, 0x30
mov ecx, esp
push ebx
call fcn.004c7be0
lea ecx, [ebp - 0xc4]
call fcn.004d0e90
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004c9290
test al, al
je 0x692b48
push 0
lea ecx, [ebp - 0xc4]
call fcn.004d1640
mov esi, eax
lea eax, [edi + 0x1004]
test eax, eax
je 0x692488
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x692488
push 2
lea eax, [edi + 0x1004]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c5410
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x24]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c5890
lea eax, [edi + 0x1804]
test eax, eax
je 0x6924d0
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x6924d0
push 2
lea eax, [edi + 0x1804]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c5410
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 3
call dword [eax + 0x28]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c5890
lea eax, [edi + 0x3004]
test eax, eax
je 0x692503
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x692503
lea eax, [edi + 0x3004]
push eax
call fcn.006b3230
mov edx, dword [esi]
add esp, 4
mov ecx, esi
push eax
call dword [edx + 0x34]
lea eax, [edi + 0x4004]
test eax, eax
je 0x69254b
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x69254b
push 2
lea eax, [edi + 0x4004]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c5410
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x30]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c5890
lea eax, [edi + 0x2804]
test eax, eax
je 0x692593
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x692593
push 2
lea eax, [edi + 0x2804]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004c5410
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call dword [eax + 0x2c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004c5890
lea eax, [edi + 0x501c]
test eax, eax
je 0x6925f8
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x6925f8
lea eax, [edi + 0x501c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
push 0x78ee08
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00424540
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00697360
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004245a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
lea eax, [edi + 0x581c]
test eax, eax
je 0x69265d
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x69265d
lea eax, [edi + 0x581c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
push 0x78ef40
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00424540
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00697360
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004245a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
lea eax, [edi + 0x601c]
test eax, eax
je 0x6926c2
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x6926c2
lea eax, [edi + 0x601c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
push 0x78edf0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.00424540
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00697360
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004245a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
lea eax, [edi + 0x681c]
test eax, eax
je 0x692727
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x692727
lea eax, [edi + 0x681c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
push 0x78d64c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.00424540
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00697360
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004245a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
lea eax, [edi + 0x701c]
test eax, eax
je 0x69278c
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x69278c
lea eax, [edi + 0x701c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00424600
push 0x78ee48
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
call fcn.00424540
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00697360
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004245a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004246d0
lea edx, [edi + 0x804]
test edx, edx
je 0x6929dc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xa0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6927a5
sub ecx, dword [ebp - 0xa0]
sar ecx, 1
je 0x6929dc
push edx
lea ecx, [ebp - 0x9c]
call fcn.00428840
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x10
call fcn.004290f0
test eax, eax
jne 0x69282f
push eax
push 0x80
push 4
push eax
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x9c]
call fcn.00429100
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x69282f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0xa0], eax
call fcn.006b6815
add esp, 4
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x692843
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00428810
jmp 0x692b62
push 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0
push ecx
push dword [ebp - 0xa0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x94]
call fcn.0042cc40
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
call fcn.00429100
push eax
lea ecx, [ebp - 0x94]
call fcn.0042d5f0
test eax, eax
jne 0x6928b8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.0042ce60
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00428810
jmp 0x692b62
mov eax, dword [ebp - 0x70]
dec eax
je 0x6928d1
sub eax, 3
je 0x6928ca
mov ebx, 0x744ec4
jmp 0x6928d6
mov ebx, str.image_png
jmp 0x6928d6
mov ebx, str.image_jpg
mov dword [ebp - 0xa4], 3
test esi, esi
je 0x69295f
push 0x78d880
lea ecx, [ebp - 0x18]
call fcn.004c2e30
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x12
push eax
mov ecx, esi
call fcn.004cae00
mov ecx, eax
call fcn.005616f0
push eax
lea ecx, [ebp - 0xb4]
call fcn.004cdf20
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x14
call fcn.004c2ec0
lea ecx, [ebp - 0xb4]
call fcn.004c3500
test eax, eax
je 0x692950
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xb4]
call fcn.004ce020
mov eax, dword [eax]
mov ecx, dword [eax + 8]
call fcn.004d03c0
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x11
call fcn.004cdff0
lea ecx, [ebp - 0x38]
call fcn.00690f50
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x15
push ebx
push dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x98]
push ebx
call fcn.00691060
push ebx
call fcn.006b31f8
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x6929a2
cmp dword [ebp - 0x2c], 0
je 0x6929a2
lea eax, [ebp - 0x38]
push eax
jmp 0x6929a4
push 0
push esi
call fcn.00697820
add esp, 8
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x38]
call fcn.00690f70
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.0042ce60
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00428810
jmp 0x692af0
lea eax, [edi + 4]
test eax, eax
je 0x692af0
push str._none_
push eax
call fcn.006b78e9
add esp, 8
test eax, eax
je 0x692af0
lea eax, [edi + 4]
push eax
call fcn.005b6cc0
add esp, 4
test eax, eax
je 0x692ae5
lea ecx, [edi + 4]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x692a3c
test dx, dx
je 0x692a38
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x692a3c
add eax, 4
add ecx, 4
test dx, dx
jne 0x692a16
xor eax, eax
jmp 0x692a41
sbb eax, eax
or eax, 1
test eax, eax
je 0x692af0
mov eax, dword [0x801070]
test eax, eax
jne 0x692ad6
push 1
push eax
sub esp, 0x30
lea eax, [edi + 4]
mov ecx, esp
push eax
call fcn.004c7be0
lea ecx, [ebp - 0x1c]
call fcn.004d0e90
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.004c9290
test al, al
je 0x692ac1
push 0
lea ecx, [ebp - 0x1c]
call fcn.004d1640
push 0x10
mov ebx, eax
call fcn.00428650
add esp, 4
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x692aac
mov ecx, eax
call fcn.00690f50
jmp 0x692aae
xor eax, eax
push eax
push ebx
mov byte [ebp - 4], 0x16
mov dword [0x801070], eax
call fcn.00695c50
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004d10a0
mov eax, dword [0x801070]
test eax, eax
je 0x692ae5
cmp dword [eax + 8], 0
je 0x692ae5
cmp dword [eax + 0xc], 0
je 0x692ae5
push eax
jmp 0x692ae7
push 0
push esi
call fcn.00697820
add esp, 8
push 0
lea ecx, [ebp - 0xc4]
call fcn.004d1660
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x3c]
call eax
xor ebx, ebx
mov ecx, esi
test al, al
mov eax, 2
sete bl
or ebx, 2
cmp dword [edi], 0
cmovne ebx, eax
call fcn.004cadf0
mov ecx, eax
call fcn.004d2ae0
push eax
push 1
push ebx
lea ecx, [ebp - 0xc4]
call fcn.004d1270
mov esi, dword [ebp - 0xa8]
test al, al
jne 0x692b52
mov ebx, dword [ebp - 0xac]
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.006b31f8
add esp, 4
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0
call fcn.004d10a0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.00690cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8