Function at 0x100078e0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015e122
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x101c5068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x268]
xor eax, eax
mov dword [ebp - 0x2bc], ebx
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
call fcn.10007020
push ecx
push 0x3f
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.10008770
cmp eax, 0xffffffff
je 0x10007994
push eax
push 0
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x268]
call fcn.10008740
push eax
lea ecx, [ebp - 0x268]
call fcn.10008820
lea ecx, [ebp - 0x280]
call fcn.10006db0
push ecx
push 0x2f
lea ecx, [ebp - 0x268]
call fcn.10008770
cmp eax, 0xffffffff
je 0x100079d9
inc eax
cmp eax, dword [esi + 0x10]
jae 0x100079d9
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x268]
call fcn.10008740
push eax
lea ecx, [ebp - 0x268]
call fcn.10008820
lea ecx, [ebp - 0x280]
call fcn.10006db0
mov eax, dword [ebp - 0x258]
cmp eax, 4
jae 0x10007a0d
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
mov dword [ebp - 0x258], 0
cmovae eax, dword [ebp - 0x268]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x258]
or esi, 0xffffffff
lea edi, [ebx + 0x20]
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x2b8], esi
je 0x10007e6c
test eax, eax
je 0x10007b50
lea eax, [ebp - 0x268]
mov edx, edi
push eax
lea ecx, [ebp - 0x280]
call fcn.10008bf0
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.10008ca0
add esp, 4
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.10006db0
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x10007ade
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x10007ade
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x240], 0
cmovae eax, dword [ebp - 0x250]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x240], 0
je 0x10007b38
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push 0
cmovae eax, dword [ebp - 0x250]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2b8], esi
cmp esi, 0xffffffff
je 0x10007b38
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x250]
cmp ecx, eax
je 0x10007b38
push 0xffffffffffffffff
push 0
push eax
call fcn.10007020
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.10006db0
cmp esi, 0xffffffff
jne 0x10007e6c
xor eax, eax
mov dword [ebp - 0x284], 7
push str.Setup.exe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x288], 0
mov word [ebp - 0x298], ax
call fcn.10006f10
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 4
push eax
mov edx, edi
lea ecx, [ebp - 0x280]
call fcn.10008bf0
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.10008ca0
add esp, 4
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 7
call fcn.10006db0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
cmp eax, 0xffffffff
je 0x10007c34
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
cmp eax, 0xffffffff
je 0x10007c34
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x228], 0
cmovae eax, dword [ebp - 0x238]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x228], 0
jne 0x10007d85
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10136bc0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10007c5f
mov edi, dword [edi]
lea eax, [ebp - 0x220]
push eax
push 1
push 0x101be998
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10007d3b
xor eax, eax
lea ecx, [ebp - 0x238]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.10006f10
mov ecx, dword [ebp - 0x228]
test ecx, ecx
je 0x10007d45
mov edi, dword [ebp - 0x224]
lea eax, [ebp - 0x238]
cmp edi, 8
lea edx, [ecx - 1]
cmovae eax, dword [ebp - 0x238]
lea edx, [eax + edx*2]
nop
movzx esi, word [edx]
mov ecx, 1
mov eax, 0x101be9a0
nop dword [eax]
cmp word [eax], si
je 0x10007cf6
add eax, 2
sub ecx, 1
jne 0x10007cd0
cmp edi, 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
cmp edx, eax
je 0x10007d3b
sub edx, 2
jmp 0x10007cc0
cmp edi, 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
sub edx, eax
sar edx, 1
cmp edx, 0xffffffff
je 0x10007d3b
push edx
push 0
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x238]
call fcn.10008740
push eax
lea ecx, [ebp - 0x238]
call fcn.10008820
lea ecx, [ebp - 0x2b0]
call fcn.10006db0
mov ecx, dword [ebp - 0x228]
test ecx, ecx
jne 0x10007d5d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x238]
call fcn.10007020
jmp 0x10007d6d
push 0x101be9a4
lea ecx, [ebp - 0x238]
call fcn.10008910
cmp dword [ebx + 0x48], 0
je 0x10007d85
cmp dword [ebx + 0x4c], 8
lea eax, [ebx + 0x38]
jb 0x10007d7e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2b8], esi
cmp esi, 0xffffffff
je 0x10007df1
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x238]
cmp ecx, eax
je 0x10007df1
push 0xffffffffffffffff
push 0
push eax
call fcn.10007020
lea ecx, [ebp - 0x238]
call fcn.10006db0
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0
call fcn.10006db0
cmp esi, 0xffffffff
jne 0x10007e6c
cmp dword [ebx], 0
je 0x10007e41
push dword [ebx + 0x70]
xor eax, eax
sub esp, 0x18
mov ecx, esp
push 0x101be9bc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.10006f10
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x268]
call fcn.10006db0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10026dd3
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x2c0]
mov byte [ebp - 4], 8
push ecx
push esi
mov ecx, ebx
call fcn.10007fe0
cmp dword [ebx + 0x30], 0
mov byte [ebp - 0x2b1], al
je 0x10007f99
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2b1], 0
mov dword [ebp - 0x2b8], 0xffffffff
jne 0x10007ece
add ebx, 0x38
cmp dword [ebx + 0x14], 8
jb 0x10007eb4
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x268]
call fcn.10006db0
mov al, byte [ebp - 0x2b1]
jmp 0x10007e4e
mov eax, dword [ebx + 0x48]
lea edi, [ebx + 0x38]
add eax, 0xfffffffb
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x2b0]
push eax
call fcn.10008740
lea esi, [ebx + 8]
push eax
mov ecx, esi
call fcn.10008820
lea ecx, [ebp - 0x2b0]
call fcn.10006db0
cmp dword [esi + 0x14], 8
jb 0x10007f08
mov eax, dword [esi]
jmp 0x10007f0a
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x10007f14
mov ecx, dword [edi]
jmp 0x10007f16
mov ecx, edi
push eax
push ecx
call fcn.101436ba
add esp, 8
test eax, eax
je 0x10007f99
cmp dword [esi + 0x14], 8
jb 0x10007f2e
mov eax, dword [esi]
jmp 0x10007f30
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x10007f41
mov ecx, dword [esi]
jmp 0x10007f43
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x10007f4d
mov eax, dword [edi]
jmp 0x10007f4f
mov eax, edi
push ecx
push eax
call fcn.101436ba
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x10007f63
mov ecx, dword [esi]
jmp 0x10007f65
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x10007f6f
mov eax, dword [edi]
jmp 0x10007f71
mov eax, edi
push ecx
push eax
call fcn.101436ba
add esp, 8
test eax, eax
je 0x10007f99
cmp dword [esi + 0x14], 8
jb 0x10007f87
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10007f8f
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x268]
call fcn.10006db0
mov al, byte [ebp - 0x2b1]
jmp 0x10007e4e