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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101712be
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x101f1dd0]
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 eax, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov esi, ecx
push ebx
push esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], ebx
mov word [ebp - 0x278], bx
call fcn.10001d60
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x2a4]
push ecx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x2a4], 0x3f
call fcn.10003820
cmp eax, 0xffffffff
je 0x100028ca
push eax
push ebx
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10003610
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.10001d60
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x2ac], edi
jb 0x100028cf
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.10052b17
add esp, 4
jmp 0x100028cf
mov edi, 8
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x2a4], 0x2f
call fcn.10003820
cmp eax, 0xffffffff
je 0x10002940
mov ecx, dword [esi + 0x14]
add eax, 1
cmp eax, ecx
jae 0x10002940
push 0xffffffffffffffff
push eax
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x27c]
call fcn.10003610
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.10001d60
mov byte [ebp - 4], bl
cmp dword [ebp - 0x2ac], edi
jb 0x10002940
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.10052b17
add esp, 4
cmp dword [ebp - 0x268], 4
jae 0x10002954
lea ecx, [ebp - 0x27c]
call fcn.10003570
or esi, 0xffffffff
cmp dword [ebp - 0x268], ebx
mov dword [ebp - 0x2a4], esi
je 0x10002b23
mov edx, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x27c]
push ecx
add edx, 0x24
push edx
lea eax, [ebp - 0x298]
push eax
call fcn.10003bc0
add esp, 0xc
push str..temp
push eax
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 4], 3
call fcn.10003c70
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [ebp - 0x280], edi
jb 0x100029bd
mov edx, dword [ebp - 0x294]
push edx
call fcn.10052b17
add esp, 4
cmp dword [ebp - 0x248], edi
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], ebx
mov word [ebp - 0x294], bx
jae 0x100029e8
lea eax, [ebp - 0x25c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x10002a3a
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x10002a0b
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x10002a27
lea eax, [ebp - 0x25c]
push eax
call edi
cmp eax, 0xffffffff
je 0x10002a3a
lea ecx, [ebp - 0x260]
call fcn.10003570
cmp dword [ebp - 0x24c], ebx
je 0x10002a93
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x10002a57
lea eax, [ebp - 0x25c]
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2a4], esi
je 0x10002a93
mov ecx, dword [ebp - 0x2a0]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x260]
push eax
add ecx, 0x40
call fcn.10001d60
mov byte [ebp - 4], bl
cmp dword [ebp - 0x248], 8
jb 0x10002aae
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.10052b17
add esp, 4
cmp esi, 0xffffffff
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], ebx
mov word [ebp - 0x25c], bx
je 0x10002b29
mov edi, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x2a8]
push esi
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.10003010
push esi
mov byte [ebp - 0x299], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x299], bl
mov dword [ebp - 0x2a4], 0xffffffff
jne 0x10002e8f
cmp dword [edi + 0x58], 8
jb 0x10002e7b
mov eax, dword [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 8
jmp 0x10002f92
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 9
push str.Setup.exe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], ebx
mov word [ebp - 0x294], bx
call fcn.10001a90
mov esi, dword [ebp - 0x2a0]
lea edx, [ebp - 0x298]
push edx
add esi, 0x24
lea eax, [ebp - 0x2c4]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.10003bc0
add esp, 0xc
push str..temp
push eax
lea ecx, [ebp - 0x244]
push ecx
mov byte [ebp - 4], 7
call fcn.10003c70
add esp, 0xc
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2ac], 8
jb 0x10002bab
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.10052b17
add esp, 4
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], ebx
mov word [ebp - 0x2c0], bx
jae 0x10002bd7
lea eax, [ebp - 0x240]
push eax
call edi
cmp eax, 0xffffffff
je 0x10002c23
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x10002bf4
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x10002c10
lea eax, [ebp - 0x240]
push eax
call edi
cmp eax, 0xffffffff
je 0x10002c23
lea ecx, [ebp - 0x244]
call fcn.10003570
cmp dword [ebp - 0x230], ebx
jne 0x10002d4e
push 0x20a
lea eax, [ebp - 0x226]
push ebx
push eax
mov word [ebp - 0x228], bx
call fcn.10076580
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10002c56
mov esi, dword [esi + 4]
jmp 0x10002c59
add esi, 4
lea ecx, [ebp - 0x228]
push ecx
push 1
push 0x101d8810
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jbe 0x10002cf4
lea eax, [ebp - 0x228]
mov word [ebp - 0x1e], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002c83
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x244]
call fcn.10001a90
push 1
push 0xffffffffffffffff
push 0x101d8818
lea ecx, [ebp - 0x244]
call fcn.10003910
cmp eax, 0xffffffff
je 0x10002cf4
push eax
push ebx
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x244]
call fcn.10003610
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xa
call fcn.10001d60
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 9
call fcn.10001630
cmp dword [ebp - 0x230], ebx
jne 0x10002d13
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x244]
call fcn.10001d60
jmp 0x10002d25
push 0xa
push 0x101d881c
lea ecx, [ebp - 0x244]
call fcn.100039b0
mov edi, dword [ebp - 0x2a0]
cmp dword [edi + 0x54], ebx
je 0x10002d54
cmp dword [edi + 0x58], 8
jb 0x10002d42
mov eax, dword [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10002d54
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10002d54
mov edi, dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x240]
mov esi, 8
cmp dword [ebp - 0x22c], esi
jae 0x10002d6d
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x240]
jae 0x10002d88
lea eax, [ebp - 0x240]
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2a4], esi
je 0x10002dbe
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x244]
push edx
lea ecx, [edi + 0x40]
call fcn.10001d60
cmp dword [ebp - 0x22c], 8
jb 0x10002dd6
mov eax, dword [ebp - 0x240]
push eax
call fcn.10052b17
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x280], 8
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], ebx
mov word [ebp - 0x240], bx
jb 0x10002e08
mov ecx, dword [ebp - 0x294]
push ecx
call fcn.10052b17
add esp, 4
cmp esi, 0xffffffff
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], ebx
mov word [ebp - 0x294], bx
jne 0x10002ad0
cmp dword [edi], ebx
je 0x10002e5a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a8], esp
push 8
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0x101d8834
mov word [ecx + 4], bx
call fcn.10001a90
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x264], 8
jb 0x10002fef
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.10052b17
add esp, 4
jmp 0x10002fef
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 8
jmp 0x10002f92
mov edi, dword [ebp - 0x2a0]
mov eax, dword [edi + 0x54]
add eax, 0xfffffffb
push eax
push ebx
lea edx, [ebp - 0x2c4]
add edi, 0x40
push edx
mov ecx, edi
call fcn.10003610
mov esi, dword [ebp - 0x2a0]
push 0xffffffffffffffff
push ebx
add esi, 8
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.10001d60
mov ebx, 8
cmp dword [ebp - 0x2ac], ebx
jb 0x10002ee2
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.10052b17
add esp, 4
cmp dword [esi + 0x18], ebx
jb 0x10002eec
mov ecx, dword [esi + 4]
jmp 0x10002eef
lea ecx, [esi + 4]
cmp dword [edi + 0x18], ebx
jb 0x10002ef9
mov eax, dword [edi + 4]
jmp 0x10002efc
lea eax, [edi + 4]
push ecx
push eax
call fcn.100798e9
add esp, 8
test eax, eax
je 0x10002f92
cmp dword [esi + 0x18], ebx
jb 0x10002f18
mov eax, dword [esi + 4]
jmp 0x10002f1b
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x18], ebx
jb 0x10002f2c
mov ecx, dword [esi + 4]
jmp 0x10002f2f
lea ecx, [esi + 4]
cmp dword [edi + 0x18], ebx
jb 0x10002f39
mov eax, dword [edi + 4]
jmp 0x10002f3c
lea eax, [edi + 4]
push ecx
push eax
call fcn.100798e9
add esp, 8
cmp dword [esi + 0x18], ebx
jb 0x10002f50
mov ecx, dword [esi + 4]
jmp 0x10002f53
lea ecx, [esi + 4]
cmp dword [edi + 0x18], ebx
jb 0x10002f5d
mov eax, dword [edi + 4]
jmp 0x10002f60
lea eax, [edi + 4]
push ecx
push eax
call fcn.100798e9
add esp, 8
test eax, eax
je 0x10002f92
cmp dword [esi + 0x18], ebx
jb 0x10002f78
mov esi, dword [esi + 4]
jmp 0x10002f7b
add esi, 4
cmp dword [edi + 0x18], ebx
jb 0x10002f85
mov edi, dword [edi + 4]
jmp 0x10002f88
add edi, 4
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x264], ebx
jb 0x10002fa9
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.10052b17
add esp, 4
mov al, byte [ebp - 0x299]
jmp 0x10002ff1
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.10075e13
mov esp, ebp
pop ebp
ret 4