Function at 0x417e7f
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Write file on windows

Disassembly:
mov eax, 0x460e55
call fcn.0043bc08
sub esp, 0xbdc
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
mov dword [ebp - 0x88], ecx
call fcn.004190c6
pop ecx
mov esi, eax
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00418dd0
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
push 1
push dword [ebp + 8]
call fcn.004188bd
lea ecx, [ebp - 0x54]
call fcn.00418e40
cmp al, bl
je 0x418887
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0041904d
lea eax, [ebp - 0xbe8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
mov byte [ebp - 4], 1
jne 0x417f1f
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041a5d7
mov dword [ebp - 0x54], vtable.is::file_lite.0
mov dword [ebp - 4], 2
mov ebx, 0xfffffcdb
jmp 0x4186e9
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, ebx
je 0x417f30
push eax
call edi
or dword [ebp - 0x1c], 0xffffffff
push 0x8000
call fcn.0043c1d4
cmp dword [ebp + 0x10], ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x417f8b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], 0x466594
cmp eax, ebx
mov dword [ebp - 0x60], 0x46658c
jne 0x417f5d
mov eax, 0x47d330
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.00401b55
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x80]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx + 8]
push eax
call fcn.0041a9de
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401257
push ebx
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x24], ebx
call fcn.0041904d
lea eax, [ebp - 0x24]
push 4
push eax
lea ecx, [ebp - 0x54]
call fcn.00419009
add esi, 4
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], ebx
jbe 0x418667
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x54]
push dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
call fcn.0041904d
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
push dword [ebp - 0x10]
lea eax, [ebp - 0x680]
push eax
call esi
lea eax, [ebp - 0x680]
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ecx + eax*2 + 2]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x14], eax
call fcn.0041904d
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
push dword [ebp - 0x10]
lea eax, [ebp - 0x910]
push eax
call esi
lea eax, [ebp - 0x910]
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ecx + eax*2 + 2]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x14], eax
call fcn.0041904d
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
push dword [ebp - 0x10]
lea eax, [ebp - 0x270]
push eax
call esi
lea eax, [ebp - 0x270]
push eax
call edi
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ecx + eax*2 + 2]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x14], eax
call fcn.0041904d
push 0x1e
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
push dword [ebp - 0x10]
call fcn.0043cade
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call edi
lea eax, [eax + eax + 2]
push ebx
add dword [ebp - 0x14], eax
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb8], 0x466fd0
mov dword [ebp - 0xb0], 0x466fc8
call fcn.0041a1c6
mov dword [ebp - 0xc4], vtable.zpath.0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0041896e
push ebx
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x9c], 0x466fd0
mov dword [ebp - 0x94], 0x466fc8
call fcn.0041a3db
mov dword [ebp - 0xa8], vtable.zpath.0
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 7
call fcn.0041a489
push dword [ebp + 0xc]
lea eax, [ebp - 0x478]
push eax
call esi
lea eax, [ebp - 0x478]
push 0x475494
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp - 0x98], ebx
je 0x418245
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x418245
push dword [ebp - 0x98]
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x478]
push ebx
push eax
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xf0], 0x466fd0
mov dword [ebp - 0xe8], 0x466fc8
call fcn.0041a1c6
mov dword [ebp - 0xfc], vtable.zpath.0
push dword [ebp - 0xec]
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418236
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0xfc]
push eax
call fcn.00419601
cmp dword [ebp + 0x14], ebx
je 0x418236
lea eax, [ebp - 0x478]
mov dword [ebp - 0x174], 0x466594
test eax, eax
mov dword [ebp - 0x154], 0x46658c
lea eax, [ebp - 0x478]
jne 0x4181ff
mov eax, 0x47d330
lea ecx, [ebp - 0x2a]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x174]
call fcn.00401b55
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x174]
push edx
mov byte [ebp - 4], 9
mov eax, dword [ecx + 8]
push eax
call fcn.0041a9de
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 8
call fcn.00401257
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.0041a489
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x680]
push ebx
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xd4], 0x466fd0
mov dword [ebp - 0xcc], 0x466fc8
call fcn.0041a1c6
mov dword [ebp - 0xe0], vtable.zpath.0
lea eax, [ebp - 0x23c]
push ebx
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
call fcn.00418a8d
mov eax, dword [eax + 0x10]
push str..cab
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb al, al
lea ecx, [ebp - 0x23c]
inc al
mov byte [ebp - 0x1d], al
call fcn.0041a489
cmp byte [ebp - 0x1d], bl
je 0x4183a6
lea eax, [ebp - 0x680]
push 5
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x1ec]
lea ecx, [ebp - 0xa8]
push eax
call fcn.004188ee
mov ecx, eax
call fcn.0041896e
push ebx
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10c], 0x466fd0
mov dword [ebp - 0x104], 0x466fc8
call fcn.0041a3db
mov dword [ebp - method.zpath.virtual_0], vtable.zpath.0
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0xd
call fcn.0041a489
lea eax, [ebp - 0x14c]
push str.data
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418382
lea eax, [ebp - 0x680]
push str.data1.cab
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x418382
cmp dword [ebp - 0x108], ebx
je 0x41837e
push dword [ebp - 0x108]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x418382
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.0041a489
cmp byte [ebp + 0xb], bl
je 0x4183a6
cmp byte [ebp + 0x18], bl
jne 0x4183a6
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
jmp 0x418625
lea ecx, [ebp - 0x80]
call fcn.00418dd0
push 2
lea eax, [ebp - 0x478]
sub esp, 0x1c
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp + 8], esp
push 1
push eax
call fcn.004188bd
lea ecx, [ebp - 0x80]
call fcn.00418f1a
cmp al, bl
je 0x418704
cmp dword [ebp - 0x18], 0x4000
jb 0x418441
push ebx
lea ecx, [ebp - 0x54]
push dword [ebp - 0x14]
call fcn.0041904d
push 0x4000
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
lea ecx, [ebp - 0x8c]
mov eax, 0x4000
push ebx
add dword [ebp - 0x14], eax
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418428
mov eax, dword [ebp - 0x8c]
jmp 0x41842b
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x418776
mov eax, 0x4000
sub dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], eax
jae 0x4183e3
cmp dword [ebp - 0x18], ebx
jbe 0x418493
push ebx
lea ecx, [ebp - 0x54]
push dword [ebp - 0x14]
call fcn.0041904d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.00419009
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push ebx
add dword [ebp - 0x14], eax
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418487
mov eax, dword [ebp - 0x84]
jmp 0x41848a
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x418801
lea ecx, [ebp - 0x80]
call fcn.00419082
lea eax, [ebp - 0x1c4]
lea ecx, [ebp - 0xc4]
push eax
call fcn.00418a28
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0xe0]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x19c]
push eax
mov byte [ebp - 4], 0x15
call fcn.00418a28
push dword [ebp + 8]
mov eax, dword [eax + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea ecx, [ebp - 0x19c]
setne byte [ebp + 0xb]
call fcn.0041a489
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0xe
call fcn.0041a489
cmp byte [ebp + 0xb], bl
je 0x4185a1
push dword [ebp + 0xc]
lea eax, [ebp - 0x680]
push eax
call esi
lea eax, [ebp - 0x680]
push 0x475494
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x708]
push ebx
push eax
lea eax, [ebp - 0x478]
push eax
call sub.LZ32.dll_LZOpenFileW
mov dword [ebp + 8], eax
lea eax, [ebp - 0x998]
push 0x1001
push eax
lea eax, [ebp - 0x680]
push eax
call sub.LZ32.dll_LZOpenFileW
push eax
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
call sub.LZ32.dll_LZCopy
push dword [ebp + 8]
mov dword [ebp - 0x58], eax
call sub.LZ32.dll_LZClose
push dword [ebp - 0x18]
call sub.LZ32.dll_LZClose
cmp dword [ebp - 0x58], ebx
jle 0x4185a1
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x478]
push eax
call esi
cmp dword [ebp + 0x10], ebx
je 0x418606
lea eax, [ebp - 0x478]
mov dword [ebp - 0x140], 0x466594
test eax, eax
mov dword [ebp - 0x120], 0x46658c
lea eax, [ebp - 0x478]
jne 0x4185cf
mov eax, 0x47d330
lea ecx, [ebp - 0x29]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401b55
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x140]
push edx
mov byte [ebp - 4], 0x16
mov eax, dword [ecx + 8]
push eax
call fcn.0041a9de
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0xe
call fcn.00401257
mov dword [ebp - 0x80], vtable.is::file_lite.0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x17
call fcn.00419082
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a489
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a489
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a489
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a489
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jb 0x417fc4
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], ebx
je 0x4186bf
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x140], 0x466594
cmp eax, ebx
mov dword [ebp - 0x120], 0x46658c
jne 0x41868c
mov eax, 0x47d330
lea ecx, [ebp + 0x1b]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401b55
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0x18
call fcn.00419e12
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.00401257
push dword [ebp - 0x10]
call fcn.0043b3dc
cmp dword [ebp - 0x1c], 0xffffffff
pop ecx
je 0x4186db
cmp edi, ebx
je 0x4186db
push dword [ebp - 0x1c]
call edi
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x54], vtable.is::file_lite.0
mov dword [ebp - 4], 0x19
lea ecx, [ebp - 0x54]
call fcn.00419082
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a489
mov eax, ebx
jmp 0x4188ac
push dword [ebp - 0x10]
call fcn.0043b3dc
mov esi, vtable.is::file_lite.0
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.00419082
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a489
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a489
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a489
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a489
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041a5d7
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0x10
mov esi, 0xfffffce0
jmp 0x4187e6
push dword [ebp - 0x10]
call fcn.0043b3dc
mov esi, vtable.is::file_lite.0
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x11
call fcn.00419082
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a489
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a489
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a489
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a489
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041a5d7
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0x12
mov esi, 0xfffffcda
lea ecx, [ebp - 0x54]
call fcn.00419082
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a489
mov eax, esi
jmp 0x4188ac
push dword [ebp - 0x10]
call fcn.0043b3dc
mov esi, vtable.is::file_lite.0
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x13
call fcn.00419082
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a489
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a489
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a489
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a489
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0041a5d7
mov dword [ebp - 0x54], esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x14
call fcn.00419082
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a489
mov eax, 0xfffffcda
jmp 0x4188ac
mov dword [ebp - 0x54], vtable.is::file_lite.0
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1a
call fcn.00419082
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a489
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14