Function at 0x403330
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 0x79e2d4
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x8ca144]
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 - 0x238]
xor eax, eax
mov dword [ebp - 0x2c0], ebx
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.00402aa0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2b8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x2b8], 0x3f
call fcn.00404390
cmp eax, 0xffffffff
je 0x40345e
push eax
push 0
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x238]
call fcn.00404160
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x403436
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x40340d
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x224], 7
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.00404450
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x403458
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402920
mov esi, dword [ebp - 0x2bc]
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2b8], 0x2f
push eax
lea ecx, [ebp - 0x238]
call fcn.00404390
cmp eax, 0xffffffff
je 0x40351b
inc eax
cmp eax, dword [esi + 0x10]
jae 0x40351b
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x238]
call fcn.00404160
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x4034f9
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x4034d0
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x224], 7
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
call fcn.00404450
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x40351b
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402920
mov eax, dword [ebp - 0x228]
cmp eax, 4
jae 0x40354f
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x228], 0
cmovae eax, dword [ebp - 0x238]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x228]
or esi, 0xffffffff
test eax, eax
mov dword [ebp - 0x2b8], esi
sete al
test al, al
jne 0x4036f4
lea eax, [ebp - 0x238]
lea edx, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x280]
call fcn.00404700
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x268]
call fcn.004047e0
add esp, 4
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x4035b0
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x26c], 7
cmp dword [ebp - 0x254], 8
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
mov dword [ebp - 0x270], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x40364d
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call edi
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40364d
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
mov dword [ebp - 0x258], 0
cmovae eax, dword [ebp - 0x268]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x258], 0
sete al
test al, al
jne 0x4036ac
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0
cmovae eax, dword [ebp - 0x268]
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 - 0x2b8], esi
cmp esi, 0xffffffff
je 0x4036ac
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x268]
cmp ecx, eax
je 0x4036ac
push 0xffffffffffffffff
push 0
push eax
call fcn.00402aa0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x254]
cmp eax, 8
jb 0x4036ce
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x254], 7
mov dword [ebp - 0x258], 0
mov word [ebp - 0x268], ax
cmp esi, 0xffffffff
jne 0x4039aa
push str.Setup.exe
lea ecx, [ebp - 0x298]
call fcn.004026c0
lea eax, [ebp - 0x298]
mov byte [ebp - 4], 8
lea esi, [ebx + 0x20]
push eax
mov edx, esi
lea ecx, [ebp - 0x280]
call fcn.00404700
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x250]
call fcn.004047e0
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x26c]
cmp eax, 8
jb 0x403755
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x26c], 7
cmp dword [ebp - 0x23c], 8
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
mov dword [ebp - 0x270], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x4037f2
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call edi
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4037f2
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
mov dword [ebp - 0x240], 0
cmovae eax, dword [ebp - 0x250]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x240], 0
sete al
test al, al
je 0x4038e1
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0074fc20
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x403822
mov esi, dword [esi]
lea eax, [ebp - 0x220]
push eax
push 1
push 0x8b08ec
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x403898
xor eax, eax
lea ecx, [ebp - 0x250]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.004027d0
push 1
push 0xffffffffffffffff
push 0x8b08f4
lea ecx, [ebp - 0x250]
call fcn.00404310
cmp eax, 0xffffffff
je 0x403898
push eax
push 0
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x250]
call fcn.00404160
push eax
lea ecx, [ebp - 0x250]
call fcn.00404240
lea ecx, [ebp - 0x2b0]
call fcn.00402680
cmp dword [ebp - 0x240], 0
lea ecx, [ebp - 0x250]
sete al
test al, al
je 0x4038be
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x298]
push eax
call fcn.00402aa0
jmp 0x4038c8
push 0x8b08f8
call fcn.004041d0
cmp dword [ebx + 0x48], 0
lea ecx, [ebx + 0x38]
sete al
test al, al
jne 0x4038e1
cmp dword [ecx + 0x14], 8
jb 0x4038de
mov ecx, dword [ecx]
push ecx
call edi
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call edi
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push 0
cmovae eax, dword [ebp - 0x250]
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 - 0x2b8], esi
cmp esi, 0xffffffff
je 0x403949
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0x250]
cmp ecx, eax
je 0x403949
push 0xffffffffffffffff
push 0
push eax
call fcn.00402aa0
lea ecx, [ebp - 0x250]
call fcn.00402680
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0
call fcn.00402680
cmp esi, 0xffffffff
jne 0x4039aa
cmp dword [ebx], 0
je 0x403983
sub esp, 0x18
mov ecx, esp
push 0x8b0910
call fcn.004026c0
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x403b17
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00402920
jmp 0x403b17
push dword [ebp - 0x2bc]
mov byte [ebp - 4], 0xc
push ecx
push esi
mov ecx, ebx
call fcn.00403b40
push esi
mov byte [ebp - 0x2b1], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2b1], 0
mov dword [ebp - 0x2b8], 0xffffffff
jne 0x403a01
add ebx, 0x38
cmp dword [ebx + 0x14], 8
jb 0x4039e8
mov ebx, dword [ebx]
push ebx
call edi
lea ecx, [ebp - 0x238]
call fcn.00402680
mov al, byte [ebp - 0x2b1]
jmp 0x403b19
mov eax, dword [ebx + 0x48]
lea edi, [ebx + 0x38]
add eax, 0xfffffffb
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x2b0]
push eax
call fcn.00404160
lea esi, [ebx + 8]
push eax
mov ecx, esi
call fcn.00404240
lea ecx, [ebp - 0x2b0]
call fcn.00402680
cmp dword [esi + 0x14], 8
jb 0x403a3b
mov eax, dword [esi]
jmp 0x403a3d
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x403a47
mov ecx, dword [edi]
jmp 0x403a49
mov ecx, edi
push eax
push ecx
call fcn.00757daf
add esp, 8
test eax, eax
je 0x403acc
cmp dword [esi + 0x14], 8
jb 0x403a61
mov eax, dword [esi]
jmp 0x403a63
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x403a74
mov ecx, dword [esi]
jmp 0x403a76
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x403a80
mov eax, dword [edi]
jmp 0x403a82
mov eax, edi
push ecx
push eax
call fcn.00757daf
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x403a96
mov ecx, dword [esi]
jmp 0x403a98
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x403aa2
mov eax, dword [edi]
jmp 0x403aa4
mov eax, edi
push ecx
push eax
call fcn.00757daf
add esp, 8
test eax, eax
je 0x403acc
cmp dword [esi + 0x14], 8
jb 0x403aba
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x403ac2
mov edi, dword [edi]
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x238]
call fcn.00402680
mov al, byte [ebp - 0x2b1]
jmp 0x403b19
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.006e70bb
mov esp, ebp
pop ebp
ret 0xc