Function at 0x4062a0
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 0x48c6ee
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4b03e8]
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 - 0x254]
xor eax, eax
mov dword [ebp - 0x2c4], ebx
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x2c0], esi
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.00405a30
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2bc]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x2bc], 0x3f
call fcn.00407320
cmp eax, 0xffffffff
je 0x4063ce
push eax
push 0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407160
mov esi, eax
lea eax, [ebp - 0x254]
cmp eax, esi
je 0x4063a6
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x40637d
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x240], 7
push esi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.004073e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x4063c8
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00405910
mov esi, dword [ebp - 0x2c0]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 0x2f
push eax
lea ecx, [ebp - 0x254]
call fcn.00407320
cmp eax, 0xffffffff
je 0x40648b
inc eax
cmp eax, dword [esi + 0x10]
jae 0x40648b
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x254]
call fcn.00407160
mov esi, eax
lea eax, [ebp - 0x254]
cmp eax, esi
je 0x406469
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x406440
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x240], 7
push esi
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.004073e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x40648b
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00405910
mov eax, dword [ebp - 0x244]
cmp eax, 4
jae 0x4064bf
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
mov eax, dword [ebp - 0x244]
or esi, 0xffffffff
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x40665f
lea eax, [ebp - 0x254]
lea edx, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x284]
call fcn.00407690
push str..temp
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
push eax
call fcn.00407770
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x406520
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00405910
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 edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x4065bd
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x26c]
push eax
call edi
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 0x4065bd
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 0x406617
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 esi, eax
mov dword [ebp - 0x2bc], esi
cmp esi, 0xffffffff
je 0x406617
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x26c]
cmp ecx, eax
je 0x406617
push 0xffffffffffffffff
push 0
push eax
call fcn.00405a30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
cmp eax, 8
jb 0x406639
inc eax
lea ecx, [ebp - 0x26c]
push eax
push dword [ebp - 0x26c]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
cmp esi, 0xffffffff
jne 0x40698b
push 9
xor eax, eax
mov dword [ebp - 0x288], 7
push str.Setup.exe
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
call fcn.00405810
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 6
lea esi, [ebx + 0x20]
push eax
mov edx, esi
lea ecx, [ebp - 0x284]
call fcn.00407690
push str..temp
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 7
push eax
call fcn.00407770
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x4066e4
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x270], 7
cmp dword [ebp - 0x228], 8
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
mov dword [ebp - 0x274], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x406781
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call edi
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406781
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
cmp dword [ebp - 0x22c], 0
jne 0x406861
push 0x20c
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004357e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4067ac
mov esi, dword [esi]
lea eax, [ebp - 0x224]
push eax
push 1
push 0x4a810c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406822
xor eax, eax
lea ecx, [ebp - 0x23c]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x224]
push eax
call fcn.004057c0
push 1
push 0xffffffffffffffff
push 0x4a8114
lea ecx, [ebp - 0x23c]
call fcn.004072a0
cmp eax, 0xffffffff
je 0x406822
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00407160
push eax
lea ecx, [ebp - 0x23c]
call fcn.004071f0
lea ecx, [ebp - 0x2b4]
call fcn.00405670
cmp dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
jne 0x406843
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.00405a30
jmp 0x40684d
push 0x4a8118
call fcn.004071a0
cmp dword [ebx + 0x48], 0
je 0x406861
cmp dword [ebx + 0x4c], 8
lea eax, [ebx + 0x38]
jb 0x40685e
mov eax, dword [eax]
push eax
call edi
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call edi
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0
cmovae eax, dword [ebp - 0x23c]
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 - 0x2bc], esi
cmp esi, 0xffffffff
je 0x4068c9
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x4068c9
push 0xffffffffffffffff
push 0
push eax
call fcn.00405a30
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x4068e7
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x22c], 0
cmp eax, 8
jb 0x406925
inc eax
lea ecx, [ebp - 0x29c]
push eax
push dword [ebp - 0x29c]
call fcn.00405910
xor eax, eax
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
cmp esi, 0xffffffff
jne 0x40698b
cmp dword [ebx], eax
je 0x406964
push dword [ebx + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x4a8130
call fcn.004056b0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x406af8
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00405910
jmp 0x406af8
push dword [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
push ecx
push esi
mov ecx, ebx
call fcn.00406b20
push esi
mov byte [ebp - 0x2b5], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2b5], 0
mov dword [ebp - 0x2bc], 0xffffffff
jne 0x4069e2
add ebx, 0x38
cmp dword [ebx + 0x14], 8
jb 0x4069c9
mov ebx, dword [ebx]
push ebx
call edi
lea ecx, [ebp - 0x254]
call fcn.00405670
mov al, byte [ebp - 0x2b5]
jmp 0x406afa
mov eax, dword [ebx + 0x48]
lea edi, [ebx + 0x38]
add eax, 0xfffffffb
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
call fcn.00407160
lea esi, [ebx + 8]
push eax
mov ecx, esi
call fcn.004071f0
lea ecx, [ebp - 0x2b4]
call fcn.00405670
cmp dword [esi + 0x14], 8
jb 0x406a1c
mov eax, dword [esi]
jmp 0x406a1e
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x406a28
mov ecx, dword [edi]
jmp 0x406a2a
mov ecx, edi
push eax
push ecx
call fcn.00449206
add esp, 8
test eax, eax
je 0x406aad
cmp dword [esi + 0x14], 8
jb 0x406a42
mov eax, dword [esi]
jmp 0x406a44
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x406a55
mov ecx, dword [esi]
jmp 0x406a57
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x406a61
mov eax, dword [edi]
jmp 0x406a63
mov eax, edi
push ecx
push eax
call fcn.00449206
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x406a77
mov ecx, dword [esi]
jmp 0x406a79
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x406a83
mov eax, dword [edi]
jmp 0x406a85
mov eax, edi
push ecx
push eax
call fcn.00449206
add esp, 8
test eax, eax
je 0x406aad
cmp dword [esi + 0x14], 8
jb 0x406a9b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x406aa3
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x254]
call fcn.00405670
mov al, byte [ebp - 0x2b5]
jmp 0x406afa
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.004168b6
mov esp, ebp
pop ebp
ret 0xc