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

Disassembly:
push 0xaec
mov eax, 0x464e68
call fcn.0043fa79
mov dword [ebp - 0xa18], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa08], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa20], eax
xor eax, eax
inc eax
push eax
push edi
mov dword [ebp - 0xa24], esi
call fcn.00416050
pop ecx
pop ecx
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa04], eax
call fcn.004127f1
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
push 1
push edi
mov dword [ebp - 4], ebx
call fcn.00412bc9
lea ecx, [ebp - 0xa78]
call fcn.0041f2a7
test al, al
je 0x420947
push ebx
push dword [ebp - 0xa04]
lea ecx, [ebp - 0xa78]
call fcn.0041fef0
lea eax, [ebp - 0x9f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa14], eax
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x420164
mov esi, 0xfffffcdb
jmp 0x42093a
lea ecx, [ebp - 0xa14]
call fcn.0041e784
push 0x8000
call fcn.0043e3bf
mov edi, eax
pop ecx
mov dword [ebp - 0xa28], edi
test esi, esi
je 0x4201c1
push 1
lea eax, [ebp - 0x9f9]
push eax
push dword [ebp - 0xa08]
lea ecx, [ebp - 0x698]
call fcn.004067e8
lea eax, [ebp - 0x698]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041fb2f
lea ecx, [ebp - 0x698]
mov byte [ebp - 4], 1
call fcn.00401500
mov esi, dword [ebp - 0xa04]
push ebx
push esi
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa0c], ebx
call fcn.0041fef0
push 4
lea eax, [ebp - 0xa0c]
push eax
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
add esi, 4
cmp dword [ebp - 0xa0c], 0
mov dword [ebp - 0xa1c], ebx
jbe 0x4208ee
push ebx
push esi
lea ecx, [ebp - 0xa78]
mov byte [ebp - 0xa04], bl
call fcn.0041fef0
push 0x208
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
push edi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
add esi, 2
push esi
lea ecx, [ebp - 0xa78]
call fcn.0041fef0
push 0x208
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
push edi
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
add esi, 2
push esi
lea ecx, [ebp - 0xa78]
call fcn.0041fef0
push 0x208
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 2
push ebx
lea eax, [esi + eax*2]
push eax
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa00], eax
call fcn.0041fef0
push 0x1e
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
mov ecx, dword [ebp - 0xa18]
push edi
call fcn.00415cbc
mov esi, eax
push edi
mov dword [ebp - 0xa10], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
add dword [ebp - 0xa00], eax
push ebx
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0xacc]
mov dword [ebp - 0xac0], 0x46ce58
mov dword [ebp - 0xab8], 0x46d060
call fcn.00411ede
mov dword [ebp - method._zstring_class_ztraits_1__.virtual_0], vtable.zpath.0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xaf8]
push eax
lea ecx, [ebp - 0xacc]
call fcn.0041eb43
push ebx
push eax
lea ecx, [ebp - 0xa94]
mov byte [ebp - 4], 4
mov dword [ebp - 0xa88], 0x46ce58
mov dword [ebp - 0xa80], 0x46d060
call fcn.00411d39
mov dword [ebp - method._zstring_class_ztraits_1__.virtual_0], vtable.zpath.0
lea ecx, [ebp - 0xaf8]
mov byte [ebp - 4], 6
call fcn.00412c6a
push dword [ebp - 0xa08]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x46b7a8
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0xa84]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x42049a
push dword [ebp - 0xa84]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0xa44]
mov dword [ebp - 0xa38], 0x46ce58
mov dword [ebp - 0xa30], 0x46d060
call fcn.00411ede
mov dword [ebp - method._zstring_class_ztraits_1__.virtual_0], vtable.zpath.0
push dword [ebp - 0xa34]
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42048b
mov ecx, dword [ebp - 0xa18]
lea eax, [ebp - 0xa44]
push eax
call fcn.00418257
cmp dword [ebp - 0xa20], 0
je 0x42048b
push ebx
lea eax, [ebp - 0x9f9]
push eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x698], 0x47686c
mov dword [ebp - 0x670], 0x46d060
call fcn.004065d0
mov ecx, dword [ebp - 0xa20]
lea eax, [ebp - 0x698]
push eax
mov byte [ebp - 4], 8
call fcn.0041fb2f
lea ecx, [ebp - 0x698]
call fcn.00401500
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 6
call fcn.00412c6a
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0xab0]
mov dword [ebp - 0xaa4], 0x46ce58
mov dword [ebp - 0xa9c], 0x46d060
call fcn.00411ede
mov dword [ebp - method._zstring_class_ztraits_1__.virtual_0], vtable.zpath.0
push ebx
lea eax, [ebp - 0xaf8]
push eax
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 9
call fcn.0041ecf5
push str..cab
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0xaf8]
sbb bl, bl
call fcn.00412c6a
inc bl
je 0x4205f8
push 5
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0xaf8]
push eax
lea ecx, [ebp - 0xa94]
call fcn.0041fcc3
mov ecx, eax
call fcn.0041eb43
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0xa38], 0x46ce58
mov dword [ebp - 0xa30], 0x46d060
call fcn.00411d39
lea ecx, [ebp - 0xaf8]
mov dword [ebp - method._zstring_class_ztraits_1__.virtual_0], vtable.zpath.0
mov byte [ebp - 4], 9
call fcn.00412c6a
push str.data
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4205d5
push str.data1.cab
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4205d5
push dword [ebp - 0xa34]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebp - 0xa04]
movzx ecx, cl
test eax, eax
push 1
pop eax
cmove ecx, eax
mov dword [ebp - 0xa04], ecx
lea ecx, [ebp - 0xa44]
call fcn.00412c6a
cmp byte [ebp - 0xa04], bl
je 0x4205fa
cmp byte [ebp + 0x18], bl
jne 0x4205fa
add dword [ebp - 0xa00], esi
jmp 0x42085c
xor ebx, ebx
lea ecx, [ebp - 0xa50]
call fcn.004127f1
push 2
sub esp, 0x1c
mov esi, esp
push ebx
lea eax, [ebp - 0x460]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
mov dword [esi + 0xc], 0x46ce58
mov dword [esi + 0x14], 0x46d060
call fcn.00411ede
lea ecx, [ebp - 0xa50]
mov dword [esi], vtable.zpath.0
call fcn.0041f374
test al, al
je 0x4208b0
mov esi, dword [ebp - 0xa10]
cmp esi, 0x4000
jb 0x4206a3
push ebx
push dword [ebp - 0xa00]
lea ecx, [ebp - 0xa78]
call fcn.0041fef0
push 0x4000
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
mov eax, 0x4000
add dword [ebp - 0xa00], eax
push eax
push edi
lea ecx, [ebp - 0xa50]
call fcn.004209a8
cmp eax, 0xffffffff
je 0x4208a3
mov eax, 0x4000
sub esi, eax
cmp esi, eax
jae 0x420654
test esi, esi
je 0x4206e5
push ebx
mov ebx, dword [ebp - 0xa00]
push ebx
lea ecx, [ebp - 0xa78]
call fcn.0041fef0
push esi
push edi
lea ecx, [ebp - 0xa78]
call fcn.0041fb9a
push esi
add ebx, esi
push edi
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa00], ebx
call fcn.004209a8
cmp eax, 0xffffffff
je 0x4208a3
lea ecx, [ebp - 0xa50]
call fcn.0041e83d
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0xacc]
call fcn.0041ed67
mov esi, eax
lea eax, [ebp - 0xaf8]
push eax
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 0xc
call fcn.0041ed67
push dword [esi + 0x10]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea ecx, [ebp - 0xaf8]
setne bl
call fcn.00412c6a
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 0xb
call fcn.00412c6a
test bl, bl
je 0x4207f6
push dword [ebp - 0xa08]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x46b7a8
lea eax, [ebp - 0x258]
push eax
call ebx
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x258]
push eax
call ebx
xor esi, esi
push esi
lea eax, [ebp - 0x720]
push eax
lea eax, [ebp - 0x460]
push eax
call sub.LZ32.dll_LZOpenFileW
mov ebx, eax
push 0x1001
lea eax, [ebp - 0x7a8]
push eax
lea eax, [ebp - 0x258]
push eax
call sub.LZ32.dll_LZOpenFileW
mov edi, eax
push edi
push ebx
call sub.LZ32.dll_LZCopy
push ebx
mov esi, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
test esi, esi
jle 0x4207f0
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [ebp - 0xa28]
mov esi, dword [ebp - 0xa24]
xor ebx, ebx
test esi, esi
je 0x42084d
push ebx
lea eax, [ebp - 0x9f9]
push eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x698]
mov dword [ebp - 0x698], 0x47686c
mov dword [ebp - 0x670], 0x46d060
call fcn.004065d0
lea eax, [ebp - 0x698]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.0041fb2f
lea ecx, [ebp - 0x698]
call fcn.00401500
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 9
call fcn.00413198
lea ecx, [ebp - 0xab0]
call fcn.00412c6a
lea ecx, [ebp - 0xa94]
call fcn.00412c6a
xor eax, eax
inc eax
lea ecx, [ebp - 0xacc]
mov byte [ebp - 4], al
call fcn.00412c6a
mov eax, dword [ebp - 0xa1c]
inc eax
mov dword [ebp - 0xa1c], eax
cmp eax, dword [ebp - 0xa0c]
jae 0x4208ee
mov esi, dword [ebp - 0xa00]
jmp 0x420204
push edi
call fcn.0043e985
mov esi, 0xfffffcda
jmp 0x4208bb
push edi
call fcn.0043e985
mov esi, 0xfffffce0
pop ecx
lea ecx, [ebp - 0xa50]
mov byte [ebp - 4], 9
call fcn.00413198
lea ecx, [ebp - 0xab0]
call fcn.00412c6a
lea ecx, [ebp - 0xa94]
call fcn.00412c6a
lea ecx, [ebp - 0xacc]
call fcn.00412c6a
jmp 0x42093a
mov ebx, dword [ebp - 0xa24]
test ebx, ebx
je 0x420931
xor eax, eax
inc eax
push eax
lea eax, [ebp - 0x9f9]
push eax
push dword [ebp - 0xa08]
lea ecx, [ebp - 0x698]
call fcn.004067e8
lea eax, [ebp - 0x698]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.0041fb2f
lea ecx, [ebp - 0x698]
call fcn.00401500
push edi
call fcn.0043e985
pop ecx
xor esi, esi
lea ecx, [ebp - 0xa14]
call fcn.0041e784
jmp 0x42094a
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa78]
call fcn.00413198
mov eax, esi
call fcn.0043fa28
ret 0x14