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

Disassembly:
push 0x33c
mov eax, 0x479ee9
call fcn.00444285
xor ebx, ebx
mov dword [ebp - 0x328], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x324]
push 1
push eax
push ebx
push 0x3b
lea ecx, [ebp + 8]
call fcn.004344d5
mov ecx, dword [ebp - 0x320]
mov edi, 0x48e948
mov edx, dword [ebp - 0x324]
mov eax, ecx
sub eax, edx
push 0x30
sub eax, 0x90
pop esi
cmp eax, esi
jae 0x43abf3
push ebx
lea eax, [ebp - 0x311]
mov dword [ebp - 0x248], edi
push eax
push 0x48e7d0
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x48e950
call fcn.00407a30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
mov eax, dword [ebp - 0x320]
cmp eax, dword [ebp - 0x31c]
je 0x43abcb
push ebx
mov dword [ebp - 0x330], eax
push ecx
mov ecx, eax
mov dword [eax], edi
mov dword [eax + 0x28], 0x48e950
call fcn.00407870
mov byte [ebp - 4], 3
add dword [ebp - 0x320], esi
jmp 0x43abd8
push ecx
push eax
lea ecx, [ebp - 0x324]
call fcn.0042d93f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00404d40
mov ecx, dword [ebp - 0x320]
mov edx, dword [ebp - 0x324]
sub ecx, edx
sub ecx, 0xc0
cmp ecx, esi
jb 0x43ac0d
push 0xfffffffffffffffc
pop edi
mov dword [ebp - 0x318], edi
jmp 0x43af4e
add edx, 0x34
cmp dword [edx + 0x14], 8
jb 0x43ac18
mov edx, dword [edx]
push edx
call fcn.00457ea4
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x324]
add eax, 0x64
pop ecx
cmp dword [eax + 0x14], 8
jb 0x43ac36
mov eax, dword [eax]
push eax
call fcn.00457ea4
mov esi, eax
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - 0x32c], esi
call fcn.0041df34
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x260], 8
cmovae eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43ae59
push 0
lea eax, [ebp - 0x311]
mov dword [ebp - 0x248], edi
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x220], 0x48e950
call fcn.00406120
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x248]
mov dword [ebp - 0x348], eax
mov esi, 0x104
xor eax, eax
mov byte [ebp - 0x344], al
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x234], esi
jae 0x43acd6
push eax
push esi
lea ecx, [ebp - 0x244]
call fcn.00408050
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x328], 1
mov byte [ebp - 0x344], 1
call fcn.004079b0
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
inc edi
mov dword [ebp - 0x328], edi
and edi, 0xfffffffe
mov dword [ebp - 0x328], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x348]
call fcn.00406010
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x278]
mov dword [ebp - 0x33c], eax
xor eax, eax
mov byte [ebp - 0x338], al
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x264], esi
jae 0x43ad4f
push eax
push esi
lea ecx, [ebp - 0x274]
call fcn.0041482d
or edi, 2
lea esi, [ebp - 0x244]
mov dword [ebp - 0x328], edi
lea ecx, [ebp - 0x278]
cmp dword [ebp - 0x230], 8
mov byte [ebp - 0x338], 1
cmovae esi, dword [ebp - 0x244]
call fcn.00413f7e
push dword [eax]
push 0
push 0x487d18
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
and edi, 0xfffffffd
mov dword [ebp - 0x328], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x33c]
call fcn.004111ed
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [0x4affe8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x310]
call fcn.0043fd2d
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x311]
push 1
push eax
push str.ISSetup.dll
lea ecx, [ebp - 0x2a8]
call fcn.0041074a
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x278]
push 0
push eax
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x310]
call fcn.00440563
mov esi, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2a8]
call fcn.00404d40
cmp esi, 1
je 0x43ae33
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x278]
call fcn.00413dba
jmp 0x43ae35
mov bl, 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x310]
call fcn.004400bb
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x248]
call fcn.00404d40
mov esi, dword [ebp - 0x32c]
cmp dword [ebp - 0x264], 0
mov edi, 0x1b59
mov dword [ebp - 0x318], edi
je 0x43aee9
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0041da4c
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2ac]
call fcn.0041e3f8
test eax, eax
jne 0x43aeb2
mov edi, dword [0x4b07f0]
mov dword [ebp - 0x318], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.0041dc68
jmp 0x43af3d
mov ecx, dword [ebp - 0x324]
lea eax, [ecx + 0x90]
push eax
push esi
push dword [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.0041eb81
mov edi, eax
mov dword [ebp - 0x318], edi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2ac]
call fcn.0041dc68
test bl, bl
je 0x43af08
cmp dword [ebp - 0x260], 8
lea eax, [ebp - 0x274]
cmovae eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x38], 0
je 0x43af3d
lea ecx, [ebp - 0x33c]
call fcn.00410c79
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x33c]
push dword [0x4affe8]
call fcn.004116c4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x33c]
call fcn.004111e6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00404d40
xor ebx, ebx
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x324]
test esi, esi
je 0x43aff7
mov ebx, dword [ebp - 0x320]
mov dword [ebp - 0x330], esi
cmp esi, ebx
je 0x43af95
push 0x30
pop edi
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00404d40
add esi, edi
mov dword [ebp - 0x330], esi
cmp esi, ebx
jne 0x43af72
mov esi, dword [ebp - 0x324]
mov edi, dword [ebp - 0x318]
mov eax, dword [ebp - 0x31c]
sub eax, esi
mov dword [ebp - 0x318], esi
push 0x30
cdq
pop ecx
idiv ecx
imul eax, eax, 0x30
mov dword [ebp - 0x32c], eax
cmp eax, 0x1000
jb 0x43afda
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00413246
mov esi, dword [ebp - 0x318]
mov eax, dword [ebp - 0x32c]
pop ecx
pop ecx
push eax
push esi
call fcn.00443fae
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404d40
mov eax, edi
call fcn.00444234
ret