Function at 0x402b00
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 0x489f3e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4ae1dc]
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.00402290
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.00403b80
cmp eax, 0xffffffff
je 0x402c2e
push eax
push 0
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x254]
call fcn.004039c0
mov esi, eax
lea eax, [ebp - 0x254]
cmp eax, esi
je 0x402c06
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x402bdd
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00402170
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.00403c40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x402c28
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00402170
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.00403b80
cmp eax, 0xffffffff
je 0x402ceb
inc eax
cmp eax, dword [esi + 0x10]
jae 0x402ceb
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x254]
call fcn.004039c0
mov esi, eax
lea eax, [ebp - 0x254]
cmp eax, esi
je 0x402cc9
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x402ca0
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00402170
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.00403c40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x402ceb
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00402170
mov eax, dword [ebp - 0x244]
cmp eax, 4
jae 0x402d1f
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 0x402ebf
lea eax, [ebp - 0x254]
lea edx, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x284]
call fcn.00403ef0
push str..temp
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 3
push eax
call fcn.00403fd0
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x402d80
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00402170
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 0x402e1d
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 0x402e1d
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 0x402e77
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 0x402e77
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x26c]
cmp ecx, eax
je 0x402e77
push 0xffffffffffffffff
push 0
push eax
call fcn.00402290
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
cmp eax, 8
jb 0x402e99
inc eax
lea ecx, [ebp - 0x26c]
push eax
push dword [ebp - 0x26c]
call fcn.00402170
xor eax, eax
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], ax
cmp esi, 0xffffffff
jne 0x4031eb
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.00402070
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 6
lea esi, [ebx + 0x20]
push eax
mov edx, esi
lea ecx, [ebp - 0x284]
call fcn.00403ef0
push str..temp
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 7
push eax
call fcn.00403fd0
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x270]
cmp eax, 8
jb 0x402f44
inc eax
lea ecx, [ebp - 0x284]
push eax
push dword [ebp - 0x284]
call fcn.00402170
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 0x402fe1
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 0x402fe1
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 0x4030c1
push 0x20c
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00432e20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40300c
mov esi, dword [esi]
lea eax, [ebp - 0x224]
push eax
push 1
push 0x4a557c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x403082
xor eax, eax
lea ecx, [ebp - 0x23c]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x224]
push eax
call fcn.00402020
push 1
push 0xffffffffffffffff
push 0x4a5584
lea ecx, [ebp - 0x23c]
call fcn.00403b00
cmp eax, 0xffffffff
je 0x403082
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004039c0
push eax
lea ecx, [ebp - 0x23c]
call fcn.00403a50
lea ecx, [ebp - 0x2b4]
call fcn.00401ed0
cmp dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
jne 0x4030a3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.00402290
jmp 0x4030ad
push 0x4a5588
call fcn.00403a00
cmp dword [ebx + 0x48], 0
je 0x4030c1
cmp dword [ebx + 0x4c], 8
lea eax, [ebx + 0x38]
jb 0x4030be
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 0x403129
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x23c]
cmp ecx, eax
je 0x403129
push 0xffffffffffffffff
push 0
push eax
call fcn.00402290
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x403147
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.00402170
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 0x403185
inc eax
lea ecx, [ebp - 0x29c]
push eax
push dword [ebp - 0x29c]
call fcn.00402170
xor eax, eax
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], 0
mov word [ebp - 0x29c], ax
cmp esi, 0xffffffff
jne 0x4031eb
cmp dword [ebx], eax
je 0x4031c4
push dword [ebx + 0x68]
sub esp, 0x18
mov ecx, esp
push 0x4a55a0
call fcn.00401f10
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x240]
cmp eax, 8
jb 0x403358
inc eax
lea ecx, [ebp - 0x254]
push eax
push dword [ebp - 0x254]
call fcn.00402170
jmp 0x403358
push dword [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
push ecx
push esi
mov ecx, ebx
call fcn.00403380
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 0x403242
add ebx, 0x38
cmp dword [ebx + 0x14], 8
jb 0x403229
mov ebx, dword [ebx]
push ebx
call edi
lea ecx, [ebp - 0x254]
call fcn.00401ed0
mov al, byte [ebp - 0x2b5]
jmp 0x40335a
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.004039c0
lea esi, [ebx + 8]
push eax
mov ecx, esi
call fcn.00403a50
lea ecx, [ebp - 0x2b4]
call fcn.00401ed0
cmp dword [esi + 0x14], 8
jb 0x40327c
mov eax, dword [esi]
jmp 0x40327e
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x403288
mov ecx, dword [edi]
jmp 0x40328a
mov ecx, edi
push eax
push ecx
call fcn.004469e7
add esp, 8
test eax, eax
je 0x40330d
cmp dword [esi + 0x14], 8
jb 0x4032a2
mov eax, dword [esi]
jmp 0x4032a4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4032b5
mov ecx, dword [esi]
jmp 0x4032b7
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4032c1
mov eax, dword [edi]
jmp 0x4032c3
mov eax, edi
push ecx
push eax
call fcn.004469e7
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x4032d7
mov ecx, dword [esi]
jmp 0x4032d9
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x4032e3
mov eax, dword [edi]
jmp 0x4032e5
mov eax, edi
push ecx
push eax
call fcn.004469e7
add esp, 8
test eax, eax
je 0x40330d
cmp dword [esi + 0x14], 8
jb 0x4032fb
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x403303
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x254]
call fcn.00401ed0
mov al, byte [ebp - 0x2b5]
jmp 0x40335a
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.004134d9
mov esp, ebp
pop ebp
ret 0xc