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

Disassembly:
mov eax, 0x461acd
call fcn.0043c274
sub esp, 0xbdc
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
mov dword [ebp - 0x88], ecx
call fcn.004190d7
pop ecx
mov esi, eax
pop ecx
lea ecx, [ebp - 0x54]
call fcn.00418de1
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.004188ce
lea ecx, [ebp - 0x54]
call fcn.00418e51
cmp al, bl
je 0x418898
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.0041905e
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 0x417f30
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00419e23
mov dword [ebp - 0x54], 0x467ffc
mov dword [ebp - 4], 2
mov ebx, 0xfffffcdb
jmp 0x4186fa
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, ebx
je 0x417f41
push eax
call edi
or dword [ebp - 0x1c], 0xffffffff
push 0x8000
call fcn.0043c844
cmp dword [ebp + 0x10], ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x417f9c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], 0x467594
cmp eax, ebx
mov dword [ebp - 0x60], 0x46758c
jne 0x417f6e
mov eax, 0x47e390
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.00401779
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.0041a9b4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.0040125c
push ebx
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x24], ebx
call fcn.0041905e
lea eax, [ebp - 0x24]
push 4
push eax
lea ecx, [ebp - 0x54]
call fcn.0041901a
add esi, 4
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], ebx
jbe 0x418678
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.0041905e
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
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.0041905e
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
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.0041905e
push 0x208
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
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.0041905e
push 0x1e
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
push dword [ebp - 0x10]
call fcn.0043d14e
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], 0x467ff0
mov dword [ebp - 0xb0], 0x467fe8
call fcn.0041a1ca
mov dword [ebp - 0xc4], 0x467fe4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x214]
lea ecx, [ebp - 0xc4]
push eax
call fcn.0041897f
push ebx
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x9c], 0x467ff0
mov dword [ebp - 0x94], 0x467fe8
call fcn.0041a3cd
mov dword [ebp - 0xa8], 0x467fe4
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 7
call fcn.0041a47b
push dword [ebp + 0xc]
lea eax, [ebp - 0x478]
push eax
call esi
lea eax, [ebp - 0x478]
push 0x4764a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp - 0x98], ebx
je 0x418256
push dword [ebp - 0x98]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x418256
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], 0x467ff0
mov dword [ebp - 0xe8], 0x467fe8
call fcn.0041a1ca
mov dword [ebp - 0xfc], 0x467fe4
push dword [ebp - 0xec]
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418247
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0xfc]
push eax
call fcn.00419612
cmp dword [ebp + 0x14], ebx
je 0x418247
lea eax, [ebp - 0x478]
mov dword [ebp - 0x174], 0x467594
test eax, eax
mov dword [ebp - 0x154], 0x46758c
lea eax, [ebp - 0x478]
jne 0x418210
mov eax, 0x47e390
lea ecx, [ebp - 0x2a]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x174]
call fcn.00401779
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.0041a9b4
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 8
call fcn.0040125c
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 7
call fcn.0041a47b
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], 0x467ff0
mov dword [ebp - 0xcc], 0x467fe8
call fcn.0041a1ca
mov dword [ebp - 0xe0], 0x467fe4
lea eax, [ebp - 0x23c]
push ebx
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xa
call fcn.00418a9e
mov eax, dword [eax + 0x10]
push 0x477f60
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.0041a47b
cmp byte [ebp - 0x1d], bl
je 0x4183b7
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.004188ff
mov ecx, eax
call fcn.0041897f
push ebx
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x10c], 0x467ff0
mov dword [ebp - 0x104], 0x467fe8
call fcn.0041a3cd
mov dword [ebp - 0x118], 0x467fe4
lea ecx, [ebp - 0x1ec]
mov byte [ebp - 4], 0xd
call fcn.0041a47b
lea eax, [ebp - 0x14c]
push 0x4782e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418393
lea eax, [ebp - 0x680]
push 0x4782cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x418393
cmp dword [ebp - 0x108], ebx
je 0x41838f
push dword [ebp - 0x108]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x418393
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call fcn.0041a47b
cmp byte [ebp + 0xb], bl
je 0x4183b7
cmp byte [ebp + 0x18], bl
jne 0x4183b7
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
jmp 0x418636
lea ecx, [ebp - 0x80]
call fcn.00418de1
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.004188ce
lea ecx, [ebp - 0x80]
call fcn.00418f2b
cmp al, bl
je 0x418715
cmp dword [ebp - 0x18], 0x4000
jb 0x418452
push ebx
lea ecx, [ebp - 0x54]
push dword [ebp - 0x14]
call fcn.0041905e
push 0x4000
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
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 0x418439
mov eax, dword [ebp - 0x8c]
jmp 0x41843c
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x418787
mov eax, 0x4000
sub dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], eax
jae 0x4183f4
cmp dword [ebp - 0x18], ebx
jbe 0x4184a4
push ebx
lea ecx, [ebp - 0x54]
push dword [ebp - 0x14]
call fcn.0041905e
push dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
push dword [ebp - 0x10]
call fcn.0041901a
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 0x418498
mov eax, dword [ebp - 0x84]
jmp 0x41849b
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x418812
lea ecx, [ebp - 0x80]
call fcn.00419093
lea eax, [ebp - 0x1c4]
lea ecx, [ebp - 0xc4]
push eax
call fcn.00418a39
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.00418a39
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.0041a47b
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 0xe
call fcn.0041a47b
cmp byte [ebp + 0xb], bl
je 0x4185b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x680]
push eax
call esi
lea eax, [ebp - 0x680]
push 0x4764a4
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 0x4185b2
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 0x418617
lea eax, [ebp - 0x478]
mov dword [ebp - 0x140], 0x467594
test eax, eax
mov dword [ebp - 0x120], 0x46758c
lea eax, [ebp - 0x478]
jne 0x4185e0
mov eax, 0x47e390
lea ecx, [ebp - 0x29]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401779
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.0041a9b4
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0xe
call fcn.0040125c
mov dword [ebp - 0x80], 0x467ffc
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x17
call fcn.00419093
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a47b
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a47b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a47b
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a47b
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jb 0x417fd5
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], ebx
je 0x4186d0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x140], 0x467594
cmp eax, ebx
mov dword [ebp - 0x120], 0x46758c
jne 0x41869d
mov eax, 0x47e390
lea ecx, [ebp + 0x1b]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401779
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0x18
call fcn.00419e3f
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.0040125c
push dword [ebp - 0x10]
call fcn.0043ba49
cmp dword [ebp - 0x1c], 0xffffffff
pop ecx
je 0x4186ec
cmp edi, ebx
je 0x4186ec
push dword [ebp - 0x1c]
call edi
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x54], 0x467ffc
mov dword [ebp - 4], 0x19
lea ecx, [ebp - 0x54]
call fcn.00419093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a47b
mov eax, ebx
jmp 0x4188bd
push dword [ebp - 0x10]
call fcn.0043ba49
mov esi, 0x467ffc
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.00419093
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a47b
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a47b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a47b
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a47b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00419e23
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0x10
mov esi, 0xfffffce0
jmp 0x4187f7
push dword [ebp - 0x10]
call fcn.0043ba49
mov esi, 0x467ffc
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x11
call fcn.00419093
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a47b
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a47b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a47b
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a47b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00419e23
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0x12
mov esi, 0xfffffcda
lea ecx, [ebp - 0x54]
call fcn.00419093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a47b
mov eax, esi
jmp 0x4188bd
push dword [ebp - 0x10]
call fcn.0043ba49
mov esi, 0x467ffc
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x13
call fcn.00419093
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.0041a47b
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 7
call fcn.0041a47b
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.0041a47b
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041a47b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00419e23
mov dword [ebp - 0x54], esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x14
call fcn.00419093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a47b
mov eax, 0xfffffcda
jmp 0x4188bd
mov dword [ebp - 0x54], 0x467ffc
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0x1a
call fcn.00419093
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041a47b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14