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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
push dword [ebp + 8]
call fcn.00407d55
lea ecx, [ebp - 0x3c]
mov ebx, eax
call fcn.004012b2
push 0
sub esp, 0x1c
mov ecx, esp
push 1
pop esi
push esi
push dword [ebp + 8]
call fcn.0040aecb
lea ecx, [ebp - 0x3c]
call fcn.004012e9
test al, al
je 0x407d06
push 0
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00407d27
lea eax, [ebp - 0x728]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x407591
mov esi, 0xfffffcdb
jmp 0x407c06
mov edi, dword [ebp - 0x708]
push eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4000
call fcn.0040b334
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
je 0x4075ed
push eax
lea eax, [ebp - 0x110]
push str.Folder_d
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x110]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push str.Files
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp ebx, edi
mov dword [ebp + 8], ebx
jae 0x407b84
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
call fcn.00407d27
mov ebx, 0x104
lea ecx, [ebp - 0x3c]
push ebx
push dword [ebp - 4]
call fcn.004019bd
push dword [ebp - 4]
lea eax, [ebp - 0x2d0]
push eax
call esi
lea eax, [ebp - 0x2d0]
push eax
call edi
mov ecx, dword [ebp + 8]
push 0
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp + 8], eax
call fcn.00407d27
push ebx
lea ecx, [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004019bd
push dword [ebp - 4]
lea eax, [ebp - 0x4d8]
push eax
call esi
lea eax, [ebp - 0x4d8]
push eax
call edi
mov ecx, dword [ebp + 8]
push 0
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp + 8], eax
call fcn.00407d27
push ebx
lea ecx, [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004019bd
push dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
call esi
lea eax, [ebp - 0x12c]
push eax
call edi
mov ecx, dword [ebp + 8]
push 0
lea ebx, [ecx + eax + 1]
lea ecx, [ebp - 0x3c]
push ebx
call fcn.00407d27
push 0xf
lea ecx, [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004019bd
push 0xa
push dword [ebp - 4]
call fcn.0040a277
pop ecx
mov dword [ebp - 8], eax
pop ecx
push dword [ebp - 4]
call edi
lea eax, [ebx + eax + 1]
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xbc], 0x4102f8
mov dword [ebp - 0xb4], 0x4102f0
call fcn.00402a82
mov ebx, 0x4102ec
mov dword [ebp - 0xc8], ebx
lea eax, [ebp - 0x1a4]
lea ecx, [ebp - 0xc8]
push eax
call fcn.00402be1
push 0
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x68], 0x4102f8
mov dword [ebp - 0x60], 0x4102f0
call fcn.00402808
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x74], ebx
call fcn.00402172
push dword [ebp + 0xc]
lea eax, [ebp - 0x3d4]
push eax
call esi
lea eax, [ebp - 0x3d4]
push 0x412590
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x64], 0
je 0x40783c
push dword [ebp - 0x64]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40783c
lea ecx, [ebp - 0x74]
call fcn.00402639
push dword [ebp - 0x70]
lea eax, [ebp - 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x3d4]
push 0
push eax
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xf4], 0x4102f8
mov dword [ebp - 0xec], 0x4102f0
call fcn.00402a82
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x100], ebx
call fcn.00402639
push dword [ebp - 0xfc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407831
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x100]
push eax
call fcn.00407e1c
cmp dword [ebp + 0x10], 0
je 0x407831
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push str.Folder_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3d4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push str.Files
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x100]
call fcn.00402172
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x2d0]
push 0
push eax
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xd8], 0x4102f8
mov dword [ebp - 0xd0], 0x4102f0
call fcn.00402a82
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xe4], ebx
call fcn.0040afa7
mov ebx, eax
mov ecx, ebx
call fcn.00402639
mov ebx, dword [ebx + 4]
push str..cab
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, eax
lea ecx, [ebp - 0x154]
neg ebx
sbb bl, bl
inc bl
call fcn.00402172
test bl, bl
je 0x40790f
lea eax, [ebp - 0x2d0]
push 5
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x58]
push str.data
push eax
call ebx
test eax, eax
jne 0x40790f
lea eax, [ebp - 0x2d0]
push str.data1.cab
push eax
call ebx
test eax, eax
je 0x40790f
cmp byte [ebp + 0x14], 0
jne 0x40790f
mov ebx, dword [ebp + 8]
add ebx, dword [ebp - 8]
mov dword [ebp + 8], ebx
jmp 0x407b5d
lea ecx, [ebp - 0xac]
call fcn.004012b2
push 2
lea eax, [ebp - 0x3d4]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.0040aecb
lea ecx, [ebp - 0xac]
call fcn.004018cf
test al, al
je 0x407c24
mov ebx, 0x4000
cmp dword [ebp - 8], ebx
jl 0x407998
push 0
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
call fcn.00407d27
push ebx
lea ecx, [ebp - 0x3c]
push dword [ebp - 4]
call fcn.004019bd
lea eax, [ebp - 0x4c]
push 0
add dword [ebp + 8], ebx
push eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407987
mov eax, dword [ebp - 0x4c]
jmp 0x40798a
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x407c2b
sub dword [ebp - 8], ebx
jmp 0x407947
cmp dword [ebp - 8], 0
jle 0x4079e8
push 0
lea ecx, [ebp - 0x3c]
push dword [ebp + 8]
call fcn.00407d27
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x3c]
push ebx
push dword [ebp - 4]
call fcn.004019bd
lea eax, [ebp - 0x48]
push 0
add dword [ebp + 8], ebx
push eax
push ebx
push dword [ebp - 4]
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4079dc
mov eax, dword [ebp - 0x48]
jmp 0x4079df
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x407c9b
lea ecx, [ebp - 0xac]
call fcn.004017e2
lea eax, [ebp - 0x17c]
lea ecx, [ebp - 0xc8]
push eax
call fcn.0040af63
mov ebx, eax
mov ecx, ebx
call fcn.00402639
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.0040af63
mov ebx, eax
mov ecx, ebx
call fcn.00402639
push dword [ebp - 8]
mov ebx, dword [ebx + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x1cc]
setne bl
call fcn.00402172
lea ecx, [ebp - 0x17c]
call fcn.00402172
test bl, bl
je 0x407afc
push dword [ebp + 0xc]
lea eax, [ebp - 0x2d0]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x2d0]
push 0x412590
push eax
call ebx
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x2d0]
push eax
call ebx
lea eax, [ebp - 0x5e8]
push 0
push eax
lea eax, [ebp - 0x3d4]
push eax
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
lea eax, [ebp - 0x560]
push 0x1001
push eax
lea eax, [ebp - 0x2d0]
push eax
call sub.LZ32.dll_LZOpenFileA
push eax
push ebx
mov dword [ebp - 8], eax
call sub.LZ32.dll_LZCopy
push ebx
mov dword [ebp - 0x50], eax
call sub.LZ32.dll_LZClose
push dword [ebp - 8]
call sub.LZ32.dll_LZClose
cmp dword [ebp - 0x50], 0
jle 0x407afc
lea eax, [ebp - 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x3d4]
push eax
call esi
cmp dword [ebp + 0x10], 0
je 0x407b3a
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x84]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3d4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x84]
push eax
push str.Files
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0xa4]
call fcn.00402172
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xe4]
call fcn.00402172
lea ecx, [ebp - 0x74]
call fcn.00402172
lea ecx, [ebp - 0xc8]
call fcn.00402172
cmp ebx, dword [ebp - 0x44]
jb 0x407604
cmp dword [ebp + 0x10], 0
je 0x407bf2
push dword [ebp - 0x10]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x84]
push str.File_d
push eax
call edi
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push str.Files
call ebx
push dword [ebp - 0xc]
lea eax, [ebp + 0x14]
push 0x4125b4
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x84]
push str.FolderCount
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x84]
push eax
push str.Files
call ebx
push dword [ebp - 4]
call fcn.0040b33f
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x34]
call fcn.00402172
mov eax, esi
jmp 0x407d20
mov edi, 0xfffffce0
jmp 0x407c30
mov edi, 0xfffffcda
push dword [ebp - 4]
call fcn.0040b33f
pop ecx
mov esi, 0x4102e8
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], esi
call fcn.004017e2
lea ecx, [ebp - 0xa4]
call fcn.00402172
lea ecx, [ebp - 0xe4]
call fcn.00402172
lea ecx, [ebp - 0x74]
call fcn.00402172
lea ecx, [ebp - 0xc8]
call fcn.00402172
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.004017e2
lea ecx, [ebp - 0x34]
call fcn.00402172
mov eax, edi
jmp 0x407d20
push dword [ebp - 4]
call fcn.0040b33f
pop ecx
mov esi, 0x4102e8
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], esi
call fcn.004017e2
lea ecx, [ebp - 0xa4]
call fcn.00402172
lea ecx, [ebp - 0xe4]
call fcn.00402172
lea ecx, [ebp - 0x74]
call fcn.00402172
lea ecx, [ebp - 0xc8]
call fcn.00402172
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.004017e2
lea ecx, [ebp - 0x34]
call fcn.00402172
mov eax, 0xfffffcda
jmp 0x407d20
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x4102e8
call fcn.004017e2
lea ecx, [ebp - 0x34]
call fcn.00402172
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x10