Function at 0x415ce0
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 0x5217be
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x574674]
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 edi, edi
push 0xffffffffffffffff
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], edi
mov word [ebp - 0x278], di
call fcn.00401e80
mov dword [ebp - 4], edi
lea edi, [ebp - 0x2a0]
lea ebx, [ebp - 0x27c]
mov dword [ebp - 0x2a0], 0x3f
call fcn.0040bb00
cmp eax, 0xffffffff
je 0x415daa
push eax
push 0
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, ebx
call fcn.00409540
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00401e80
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2ac], 8
jb 0x415daa
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.00418473
add esp, 4
lea edi, [ebp - 0x2a0]
lea ebx, [ebp - 0x27c]
mov dword [ebp - 0x2a0], 0x2f
call fcn.0040bb00
cmp eax, 0xffffffff
je 0x415e11
mov esi, dword [esi + 0x14]
add eax, 1
cmp eax, esi
jae 0x415e11
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c4]
push eax
mov ecx, ebx
call fcn.00409540
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00401e80
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2ac], 8
jb 0x415e11
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.00418473
add esp, 4
cmp dword [ebp - 0x268], 4
jae 0x415e25
lea edi, [ebp - 0x27c]
call fcn.0040c5f0
or ebx, 0xffffffff
cmp dword [ebp - 0x268], 0
mov dword [ebp - 0x2a0], ebx
je 0x415fa0
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x27c]
push edx
add eax, 0x24
push eax
lea esi, [ebp - 0x298]
call fcn.0040c370
push eax
lea esi, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.0040c2b0
add esp, 0xc
mov edi, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x280], edi
jb 0x415e8a
mov ecx, dword [ebp - 0x294]
push ecx
call fcn.00418473
add esp, 4
mov eax, dword [ebp - 0x25c]
xor esi, esi
cmp dword [ebp - 0x248], edi
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], esi
mov word [ebp - 0x294], si
jae 0x415eb7
lea eax, [ebp - 0x25c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x415f0b
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x415eda
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x415ef6
lea eax, [ebp - 0x25c]
push eax
call edi
cmp eax, 0xffffffff
je 0x415f0b
lea edi, [ebp - 0x260]
call fcn.0040c5f0
xor esi, esi
cmp dword [ebp - 0x24c], esi
je 0x415f64
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x415f28
lea eax, [ebp - 0x25c]
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2a0], ebx
je 0x415f64
mov ecx, dword [ebp - 0x2a4]
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x260]
push edx
add ecx, 0x40
call fcn.00401e80
mov byte [ebp - 4], 0
cmp dword [ebp - 0x248], 8
jb 0x415f80
mov eax, dword [ebp - 0x25c]
push eax
call fcn.00418473
add esp, 4
cmp ebx, 0xffffffff
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x25c], si
jne 0x4162f6
push 9
xor edi, edi
push str.Setup.exe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], edi
mov word [ebp - 0x294], di
call fcn.00402110
mov ebx, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x298]
push ecx
add ebx, 0x24
push ebx
lea esi, [ebp - 0x2c4]
mov byte [ebp - 4], 6
call fcn.0040c370
push eax
lea esi, [ebp - 0x244]
mov byte [ebp - 4], 7
call fcn.0040c2b0
add esp, 0xc
mov esi, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2ac], esi
jb 0x41601e
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.00418473
add esp, 4
cmp dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], edi
mov word [ebp - 0x2c0], di
jae 0x416049
lea eax, [ebp - 0x240]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x41609d
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x41606c
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x416088
lea eax, [ebp - 0x240]
push eax
call esi
cmp eax, 0xffffffff
je 0x41609d
lea edi, [ebp - 0x244]
call fcn.0040c5f0
xor edi, edi
cmp dword [ebp - 0x230], edi
jne 0x4161c6
push 0x20a
lea eax, [ebp - 0x226]
push edi
push eax
mov word [ebp - 0x228], di
call fcn.00437ec0
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x4160d0
mov ebx, dword [ebx + 4]
jmp 0x4160d3
add ebx, 4
lea ecx, [ebp - 0x228]
push ecx
push 1
push 0x568500
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, edi
jbe 0x416169
lea eax, [ebp - 0x228]
mov word [ebp - 0x1e], 0
lea edx, [eax + 2]
jmp 0x416100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416100
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x244]
call fcn.00402110
push 1
push 0x567504
lea ebx, [ebp - 0x244]
call fcn.0040bbc0
cmp eax, 0xffffffff
je 0x416169
push eax
push 0
lea eax, [ebp - 0x2e0]
push eax
mov ecx, ebx
call fcn.00409540
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.00401e80
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 9
call fcn.00401e50
cmp dword [ebp - 0x230], 0
jne 0x41618a
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00401e80
jmp 0x41619c
push 0xa
push str._Setup.exe
lea ecx, [ebp - 0x244]
call fcn.00402010
mov edi, dword [ebp - 0x2a4]
cmp dword [edi + 0x54], 0
je 0x4161cc
cmp dword [edi + 0x58], 8
jb 0x4161ba
mov eax, dword [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4161cc
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4161cc
mov edi, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x240]
mov esi, 8
cmp dword [ebp - 0x22c], esi
jae 0x4161e5
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x240]
jae 0x416200
lea eax, [ebp - 0x240]
xor esi, esi
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2a0], ebx
je 0x416238
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x244]
push edx
lea ecx, [edi + 0x40]
call fcn.00401e80
cmp dword [ebp - 0x22c], 8
jb 0x416250
mov eax, dword [ebp - 0x240]
push eax
call fcn.00418473
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x280], 8
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov word [ebp - 0x240], si
jb 0x416283
mov ecx, dword [ebp - 0x294]
push ecx
call fcn.00418473
add esp, 4
cmp ebx, 0xffffffff
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], esi
mov word [ebp - 0x294], si
jne 0x4162fc
xor eax, eax
cmp dword [edi], eax
je 0x4162d5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a8], esp
push 8
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], eax
push 0x568520
mov word [ecx + 4], ax
call fcn.00402110
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp dword [ebp - 0x264], 8
jb 0x4164ac
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00418473
add esp, 4
jmp 0x4164ac
mov edi, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x2a8]
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004164d0
push ebx
mov byte [ebp - 0x299], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x299], 0
mov dword [ebp - 0x2a0], 0xffffffff
jne 0x416356
mov esi, 8
cmp dword [edi + 0x58], esi
jb 0x416347
mov edi, dword [edi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41644f
add edi, 0x44
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41644f
mov eax, dword [edi + 0x54]
add eax, 0xfffffffb
push eax
push 0
lea edx, [ebp - 0x2c4]
lea ebx, [edi + 0x40]
push edx
mov ecx, ebx
call fcn.00409540
push 0xffffffffffffffff
push 0
add edi, 8
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00401e80
mov esi, 8
cmp dword [ebp - 0x2ac], esi
jb 0x41639f
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.00418473
add esp, 4
cmp dword [edi + 0x18], esi
jb 0x4163a9
mov ecx, dword [edi + 4]
jmp 0x4163ac
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x4163b6
mov eax, dword [ebx + 4]
jmp 0x4163b9
lea eax, [ebx + 4]
push ecx
push eax
call fcn.004345bb
add esp, 8
test eax, eax
je 0x41644f
cmp dword [edi + 0x18], esi
jb 0x4163d5
mov eax, dword [edi + 4]
jmp 0x4163d8
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x18], esi
jb 0x4163e9
mov ecx, dword [edi + 4]
jmp 0x4163ec
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x4163f6
mov eax, dword [ebx + 4]
jmp 0x4163f9
lea eax, [ebx + 4]
push ecx
push eax
call fcn.004345bb
add esp, 8
cmp dword [edi + 0x18], esi
jb 0x41640d
mov ecx, dword [edi + 4]
jmp 0x416410
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x41641a
mov eax, dword [ebx + 4]
jmp 0x41641d
lea eax, [ebx + 4]
push ecx
push eax
call fcn.004345bb
add esp, 8
test eax, eax
je 0x41644f
cmp dword [edi + 0x18], esi
jb 0x416435
mov edi, dword [edi + 4]
jmp 0x416438
add edi, 4
cmp dword [ebx + 0x18], esi
jb 0x416442
mov ebx, dword [ebx + 4]
jmp 0x416445
add ebx, 4
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x264], esi
jb 0x416466
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.00418473
add esp, 4
mov al, byte [ebp - 0x299]
jmp 0x4164ae
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.004338df
mov esp, ebp
pop ebp
ret 4