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

Disassembly:
mov eax, 0x46186f
call fcn.0043b400
sub esp, 0x7a0
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
mov dword [ebp - 0x84], ecx
call fcn.00418be6
pop ecx
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004188cd
xor edi, edi
push edi
mov dword [ebp - 4], edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
push 1
push dword [ebp + 8]
call fcn.004183ba
lea ecx, [ebp - 0x58]
call fcn.0041893d
test al, al
je 0x418384
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.00418b6d
lea eax, [ebp - 0x7ac]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
mov byte [ebp - 4], 1
jne 0x417a61
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041a076
mov dword [ebp - 0x58], 0x467f84
mov dword [ebp - 4], 2
mov esi, 0xfffffcdb
jmp 0x4181ea
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x78c]
cmp esi, edi
mov dword [ebp - 0x2c], ecx
je 0x417a7b
push eax
call esi
or dword [ebp - 0x1c], 0xffffffff
push 0x4000
call fcn.0043b8cf
mov edi, dword [ebp + 0x10]
pop ecx
test edi, edi
mov dword [ebp - 0x14], eax
je 0x417ac0
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x80]
push dword [ebp + 0xc]
call fcn.00401712
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x80]
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0041a5b3
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00401279
cmp ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ebx
jae 0x418185
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, 0x467f7c
and byte [ebp + 0xb], 0
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.00418b6d
push 0x104
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
push dword [ebp - 0x14]
lea eax, [ebp - 0x458]
push eax
call esi
lea eax, [ebp - 0x458]
push eax
call edi
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x10], eax
call fcn.00418b6d
push 0x104
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
push dword [ebp - 0x14]
lea eax, [ebp - 0x55c]
push eax
call esi
lea eax, [ebp - 0x55c]
push eax
call edi
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x10], eax
call fcn.00418b6d
push 0x104
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
push dword [ebp - 0x14]
lea eax, [ebp - 0x160]
push eax
call esi
lea eax, [ebp - 0x160]
push eax
call edi
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 0x58]
push eax
mov dword [ebp - 0x10], eax
call fcn.00418b6d
push 0xf
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
push 0xa
push dword [ebp - 0x14]
call fcn.00419f58
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
push dword [ebp - 0x14]
call edi
inc eax
push 0
add dword [ebp - 0x10], eax
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xbc], 0x467f70
mov dword [ebp - 0xb4], 0x467f68
call fcn.00419d88
mov dword [ebp - 0xc8], ebx
lea eax, [ebp - 0x200]
lea ecx, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 4
call fcn.0041846b
push 0
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
mov dword [ebp - 0x98], 0x467f70
mov dword [ebp - 0x90], 0x467f68
call fcn.00419e18
mov dword [ebp - 0xa4], ebx
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 7
call fcn.00419ec6
push dword [ebp + 0xc]
lea eax, [ebp - 0x354]
push eax
call esi
lea eax, [ebp - 0x354]
push 0x476c60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x94], 0
je 0x417d50
push dword [ebp - 0x94]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x417d50
lea ecx, [ebp - 0xa4]
call fcn.0043992e
push dword [ebp - 0xa0]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x354]
push 0
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xf4], 0x467f70
mov dword [ebp - 0xec], 0x467f68
call fcn.00419d88
mov dword [ebp - 0x100], ebx
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 8
call fcn.0043992e
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417d41
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x100]
push eax
call fcn.00419048
cmp dword [ebp + 0x14], 0
je 0x417d41
lea eax, [ebp - 0x25]
push 1
push eax
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x188]
call fcn.00401712
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x188]
push edx
mov byte [ebp - 4], 9
mov eax, dword [ecx + 8]
push eax
call fcn.0041a5b3
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 8
call fcn.00401279
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 7
call fcn.00419ec6
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x458]
push 0
push eax
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xd8], 0x467f70
mov dword [ebp - 0xd0], 0x467f68
call fcn.00419d88
mov dword [ebp - 0xe4], ebx
lea eax, [ebp - 0x228]
push 0
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xa
call fcn.0041858a
mov ecx, eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0xb
call fcn.0043992e
mov eax, dword [ebp - 0x24]
push 0x477c90
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb al, al
lea ecx, [ebp - 0x228]
inc al
mov byte [ebp - 4], 0xa
mov byte [ebp - 0x1d], al
call fcn.00419ec6
cmp byte [ebp - 0x1d], 0
je 0x417ec5
lea eax, [ebp - 0x458]
push 5
push eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0xa4]
push eax
call fcn.004183eb
mov ecx, eax
call fcn.0041846b
push 0
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x110], 0x467f70
mov dword [ebp - 0x108], 0x467f68
call fcn.00419e18
mov dword [ebp - 0x11c], ebx
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 0xe
call fcn.00419ec6
lea eax, [ebp - 0xac]
push 0x477c88
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x417e9f
lea eax, [ebp - 0x458]
push 0x477c7c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x417e9f
cmp dword [ebp - 0x10c], 0
je 0x417e9b
push dword [ebp - 0x10c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x417e9f
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xa
call fcn.00419ec6
cmp byte [ebp + 0xb], 0
je 0x417ec5
cmp byte [ebp + 0x18], 0
jne 0x417ec5
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
jmp 0x418143
lea ecx, [ebp - 0x80]
call fcn.004188cd
push 2
lea eax, [ebp - 0x354]
sub esp, 0x1c
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp + 8], esp
push 1
push eax
call fcn.004183ba
lea ecx, [ebp - 0x80]
call fcn.00418a28
test al, al
je 0x418205
cmp dword [ebp - 0x18], 0x4000
jb 0x417f62
push 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x10]
call fcn.00418b6d
push 0x4000
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
lea ecx, [ebp - 0x88]
mov eax, 0x4000
push 0
add dword [ebp - 0x10], eax
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417f49
mov eax, dword [ebp - 0x88]
jmp 0x417f4c
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x41827b
mov eax, 0x4000
sub dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], eax
jae 0x417f02
cmp dword [ebp - 0x18], 0
jbe 0x417fb1
push 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x10]
call fcn.00418b6d
push dword [ebp - 0x18]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.00418b29
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push 0
add dword [ebp - 0x10], eax
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417fa5
mov eax, dword [ebp - 0x30]
jmp 0x417fa8
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x4182f1
lea ecx, [ebp - 0x80]
call fcn.00418ba2
lea eax, [ebp - 0x1d8]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00418525
mov ecx, eax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0x16
call fcn.0043992e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x250]
push eax
call fcn.00418525
mov ecx, eax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0x17
call fcn.0043992e
mov eax, dword [ebp + 8]
push dword [ebp - 0x24]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x16
setne byte [ebp + 0xb]
call fcn.00419ec6
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 0xf
call fcn.00419ec6
cmp byte [ebp + 0xb], 0
je 0x4180e4
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call esi
lea eax, [ebp - 0x458]
push 0x476c60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x5e4]
push 0
push eax
lea eax, [ebp - 0x354]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp + 8], eax
lea eax, [ebp - 0x66c]
push 0x1001
push eax
lea eax, [ebp - 0x458]
push eax
call sub.LZ32.dll_LZOpenFileA
push eax
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
call sub.LZ32.dll_LZCopy
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call sub.LZ32.dll_LZClose
push dword [ebp - 0x24]
call sub.LZ32.dll_LZClose
cmp dword [ebp - 0x18], 0
jle 0x4180e4
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x354]
push eax
call esi
cmp dword [ebp + 0x10], 0
je 0x418124
lea eax, [ebp - 0x26]
push 1
push eax
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x144]
call fcn.00401712
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x144]
push eax
mov byte [ebp - 4], 0x18
call fcn.004197d9
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xf
call fcn.00401279
mov dword [ebp - 0x80], 0x467f84
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call fcn.00418ba2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00419ec6
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00419ec6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00419ec6
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00419ec6
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x10], eax
jb 0x417add
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4181be
lea eax, [ebp + 0x1b]
push 1
push eax
lea ecx, [ebp - 0x144]
push dword [ebp + 0xc]
call fcn.00401712
lea eax, [ebp - 0x144]
mov ecx, edi
push eax
mov byte [ebp - 4], 0x1a
call fcn.004197d9
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00401279
push dword [ebp - 0x14]
call fcn.0043abc6
cmp dword [ebp - 0x1c], 0xffffffff
pop ecx
je 0x4181da
test esi, esi
je 0x4181da
push dword [ebp - 0x1c]
call esi
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x58], 0x467f84
mov dword [ebp - 4], 0x1b
xor esi, esi
lea ecx, [ebp - 0x58]
call fcn.00418ba2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00419ec6
mov eax, esi
jmp 0x4183a9
push dword [ebp - 0x14]
call fcn.0043abc6
mov esi, 0x467f84
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00418ba2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00419ec6
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00419ec6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00419ec6
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00419ec6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041a076
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 0x11
mov esi, 0xfffffce0
jmp 0x4181ea
push dword [ebp - 0x14]
call fcn.0043abc6
mov esi, 0x467f84
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call fcn.00418ba2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00419ec6
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00419ec6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00419ec6
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00419ec6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041a076
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 0x13
mov esi, 0xfffffcda
jmp 0x4181ea
push dword [ebp - 0x14]
call fcn.0043abc6
mov esi, 0x467f84
pop ecx
mov dword [ebp - 0x80], esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x14
call fcn.00418ba2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xa
call fcn.00419ec6
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00419ec6
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.00419ec6
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 1
call fcn.00419ec6
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41835f
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41835f
push dword [ebp - 0x1c]
call eax
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x58], esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0x15
call fcn.00418ba2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00419ec6
mov eax, 0xfffffcda
jmp 0x4183a9
mov dword [ebp - 0x58], 0x467f84
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0x1c
call fcn.00418ba2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00419ec6
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14