Function at 0x100208e0
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 0x1017b98e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x101df028]
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 esi, ecx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x2c0], esi
push 0xffffffffffffffff
push eax
push ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.10020060
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x2bc], 0x3f
call fcn.10021930
cmp eax, 0xffffffff
je 0x10020a08
push eax
push 0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10021750
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x100209e6
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x100209bd
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x228], 7
push edi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.100219f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x10020a08
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.1001ff10
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 0x2f
push eax
lea ecx, [ebp - 0x23c]
call fcn.10021930
cmp eax, 0xffffffff
je 0x10020ac5
inc eax
cmp eax, dword [ebx + 0x10]
jae 0x10020ac5
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10021750
mov edi, eax
lea eax, [ebp - 0x23c]
cmp eax, edi
je 0x10020aa3
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x10020a7a
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x228], 7
push edi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.100219f0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x10020ac5
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.1001ff10
mov eax, dword [ebp - 0x22c]
cmp eax, 4
jae 0x10020af9
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
cmovae eax, dword [ebp - 0x23c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x22c]
or edi, 0xffffffff
cmp dword [esi + 0x30], 0
mov dword [ebp - 0x2bc], edi
je 0x10020f58
test eax, eax
je 0x10020ca5
lea eax, [ebp - 0x23c]
lea edx, [esi + 0x20]
push eax
lea ecx, [ebp - 0x284]
call fcn.10021ca0
push str..temp
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
push eax
call fcn.10021d80
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x10020b64
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x270], 7
cmp dword [ebp - 0x258], 8
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push eax
mov dword [ebp - 0x274], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x10020c01
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push eax
call ebx
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10020c01
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x25c], 0
cmovae eax, dword [ebp - 0x26c]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x25c], 0
je 0x10020c5b
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
push 0
cmovae eax, dword [ebp - 0x26c]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2bc], edi
cmp edi, 0xffffffff
je 0x10020c5b
lea ecx, [esi + 0x38]
lea eax, [ebp - 0x26c]
cmp ecx, eax
je 0x10020c5b
push 0xffffffffffffffff
push 0
push eax
call fcn.10020060
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
cmp eax, 8
jb 0x10020c7d
inc eax
lea ecx, [ebp - 0x26c]
push eax
push dword [ebp - 0x26c]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
cmp edi, 0xffffffff
jne 0x10020f5e
jmp 0x10020cab
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.Setup.exe
lea ecx, [ebp - 0x29c]
call fcn.1001fcb0
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 6
lea edi, [esi + 0x20]
push eax
mov edx, edi
lea ecx, [ebp - 0x284]
call fcn.10021ca0
push str..temp
push eax
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 7
push eax
call fcn.10021d80
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x10020d11
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.1001ff10
xor eax, eax
mov dword [ebp - 0x270], 7
cmp dword [ebp - 0x240], 8
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
mov dword [ebp - 0x274], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10020da8
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call ebx
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10020da8
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
mov dword [ebp - 0x244], 0
cmovae eax, dword [ebp - 0x254]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x244], 0
jne 0x10020e88
push 0x20c
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.10056120
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10020dd3
mov edi, dword [edi]
lea eax, [ebp - 0x224]
push eax
push 1
push 0x101d74d0
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10020e49
xor eax, eax
lea ecx, [ebp - 0x254]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x224]
push eax
call fcn.1001fdc0
push 1
push 0xffffffffffffffff
push 0x101d74d8
lea ecx, [ebp - 0x254]
call fcn.100218b0
cmp eax, 0xffffffff
je 0x10020e49
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x254]
call fcn.10021750
push eax
lea ecx, [ebp - 0x254]
call fcn.10021800
lea ecx, [ebp - 0x2b4]
call fcn.1001fc70
cmp dword [ebp - 0x244], 0
lea ecx, [ebp - 0x254]
jne 0x10020e6a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.10020060
jmp 0x10020e74
push 0x101d74dc
call fcn.10021790
cmp dword [esi + 0x48], 0
je 0x10020e88
cmp dword [esi + 0x4c], 8
lea eax, [esi + 0x38]
jb 0x10020e85
mov eax, dword [eax]
push eax
call ebx
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push eax
call ebx
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push 0
cmovae eax, dword [ebp - 0x254]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2bc], edi
cmp edi, 0xffffffff
je 0x10020ef0
lea ecx, [esi + 0x38]
lea eax, [ebp - 0x254]
cmp ecx, eax
je 0x10020ef0
push 0xffffffffffffffff
push 0
push eax
call fcn.10020060
lea ecx, [ebp - 0x254]
call fcn.1001fc70
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0
call fcn.1001fc70
cmp edi, 0xffffffff
jne 0x10020f5e
cmp dword [esi], 0
je 0x10020f2d
push dword [esi + 0x70]
sub esp, 0x18
mov ecx, esp
push 0x101d74f4
call fcn.1001fcb0
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x23c]
call fcn.1001fc70
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.10032035
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c4]
mov byte [ebp - 4], 0xa
push ecx
push edi
mov ecx, esi
call fcn.100210d0
cmp dword [esi + 0x30], 0
mov byte [ebp - 0x2b5], al
je 0x10021075
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2b5], 0
mov dword [ebp - 0x2bc], 0xffffffff
jne 0x10020fae
add esi, 0x38
cmp dword [esi + 0x14], 8
jb 0x10020fa6
mov esi, dword [esi]
push esi
call ebx
jmp 0x10021075
mov eax, dword [esi + 0x48]
lea edi, [esi + 0x38]
add eax, 0xfffffffb
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
call fcn.10021750
add esi, 8
push eax
mov ecx, esi
call fcn.10021800
lea ecx, [ebp - 0x2b4]
call fcn.1001fc70
cmp dword [esi + 0x14], 8
jb 0x10020fe8
mov eax, dword [esi]
jmp 0x10020fea
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x10020ff4
mov ecx, dword [edi]
jmp 0x10020ff6
mov ecx, edi
push eax
push ecx
call fcn.10064dc6
add esp, 8
test eax, eax
je 0x10021075
cmp dword [esi + 0x14], 8
jb 0x1002100e
mov eax, dword [esi]
jmp 0x10021010
mov eax, esi
push eax
call ebx
cmp dword [esi + 0x14], 8
jb 0x1002101d
mov ecx, dword [esi]
jmp 0x1002101f
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x10021029
mov eax, dword [edi]
jmp 0x1002102b
mov eax, edi
push ecx
push eax
call fcn.10064dc6
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x1002103f
mov ecx, dword [esi]
jmp 0x10021041
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x1002104b
mov eax, dword [edi]
jmp 0x1002104d
mov eax, edi
push ecx
push eax
call fcn.10064dc6
add esp, 8
test eax, eax
je 0x10021075
cmp dword [esi + 0x14], 8
jb 0x10021063
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x1002106b
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x228]
cmp ecx, 8
jb 0x10021093
inc ecx
push ecx
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x23c]
call fcn.1001ff10
mov al, byte [ebp - 0x2b5]
jmp 0x10020f3a