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

Disassembly:
push ebp
sub esp, 0x328
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x328], eax
push 0x30
mov eax, 0x4a9da0
call fcn.004674a0
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.004229f3
mov byte [ebp - 4], 1
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push edi
push 0x3b
lea ecx, [ebp + 0x334]
call fcn.00427eae
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x34
cdq
pop ecx
idiv ecx
cmp eax, 3
jne 0x43e1c8
push ebx
lea eax, [ebp - 0xd]
push eax
push 0x4c1ca0
lea ecx, [ebp + 0xb8]
call fcn.00401850
mov byte [ebp - 4], 2
lea eax, [ebp + 0xb8]
push eax
lea ecx, [ebp - 0x34]
call fcn.004277ca
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xb8]
call fcn.00401600
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x34
cdq
pop ecx
idiv ecx
cmp eax, 4
je 0x43e21c
push 0xfffffffffffffffc
pop esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00425792
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x334]
call fcn.00401600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x328]
xor ecx, ebp
call fcn.00467491
add ebp, 0x32c
leave
ret
push ebx
lea ecx, [ebp - 0x34]
call fcn.0041fd02
cmp dword [eax + 0x1c], 8
jb 0x43e230
mov eax, dword [eax + 8]
jmp 0x43e233
add eax, 8
push eax
call fcn.00469b1b
pop ecx
push 2
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
call fcn.0041fd02
cmp dword [eax + 0x1c], 8
jb 0x43e252
mov eax, dword [eax + 8]
jmp 0x43e255
add eax, 8
push eax
call fcn.00469b1b
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0xec]
push eax
call fcn.0041a92b
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
mov byte [ebp - 0xd], 0
jae 0x43e289
lea eax, [ebp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e3d4
push ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0xb8]
call fcn.00401810
mov byte [ebp - 4], 4
mov esi, 0x104
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xb8]
call fcn.00401980
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00402210
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00401fe0
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xec]
call fcn.0040ac18
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407812
cmp dword [ebp + 0xd4], 8
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc0]
jae 0x43e31c
lea ecx, [ebp + 0xc0]
push eax
push edi
push 0x4b6148
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040a4ef
push esi
lea eax, [ebp + 0x120]
push eax
push dword [0x4e0678]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x120]
push eax
lea ecx, [ebp]
call fcn.004428a9
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp - 0xd]
push eax
push str.ISSetup.dll
lea ecx, [ebp + 0x84]
call fcn.0040a0dc
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0xec]
push eax
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp]
call fcn.004419f4
cmp eax, ebx
setne bl
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x84]
call fcn.00401660
test bl, bl
je 0x43e3b5
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0xec]
call fcn.004077e7
jmp 0x43e3b9
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00442439
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xb8]
call fcn.00401600
mov esi, 0x1b59
cmp dword [ebp + 0x104], edi
je 0x43e46a
lea eax, [ebp + 0xec]
push eax
lea ecx, [ebp + 0x80]
call fcn.0041a3a8
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x80]
call fcn.00418ff0
test eax, eax
jne 0x43e433
mov esi, dword [0x4e0670]
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x80]
call fcn.004194ee
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xec]
call fcn.00401660
jmp 0x43e1dc
push 3
lea ecx, [ebp - 0x34]
call fcn.0041fd02
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call fcn.0041fd02
push eax
lea ecx, [ebp + 0x80]
call fcn.0041903f
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x80]
call fcn.004194ee
cmp byte [ebp - 0xd], 0
je 0x43e48c
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x43e485
lea eax, [ebp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x368], 0
je 0x43e41f
lea ecx, [ebp - 0x1c]
call fcn.00405e1a
mov byte [ebp - 4], 0xa
push dword [0x4e0678]
lea ecx, [ebp - 0x1c]
call fcn.0040cc8c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405e2b
jmp 0x43e41f