Function at 0x43df1f
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, 0x4a9678
call fcn.00466e90
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x34]
call fcn.00422557
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.00427d27
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x34
cdq
pop ecx
idiv ecx
cmp eax, 3
jne 0x43dfb1
push ebx
lea eax, [ebp - 0xd]
push eax
push 0x4c1c70
lea ecx, [ebp + 0xb8]
call fcn.00401890
mov byte [ebp - 4], 2
lea eax, [ebp + 0xb8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00425f12
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xb8]
call fcn.00401640
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
push 0x34
cdq
pop ecx
idiv ecx
cmp eax, 4
je 0x43e005
push 0xfffffffffffffffc
pop esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00425129
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x334]
call fcn.00401640
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.00466e81
add ebp, 0x32c
leave
ret
push ebx
lea ecx, [ebp - 0x34]
call fcn.0041fc65
cmp dword [eax + 0x1c], 8
jb 0x43e019
mov eax, dword [eax + 8]
jmp 0x43e01c
add eax, 8
push eax
call fcn.0046950b
pop ecx
push 2
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
call fcn.0041fc65
cmp dword [eax + 0x1c], 8
jb 0x43e03b
mov eax, dword [eax + 8]
jmp 0x43e03e
add eax, 8
push eax
call fcn.0046950b
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0xec]
push eax
call fcn.0041a9cb
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 0x43e072
lea eax, [ebp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43e1bd
push ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0xb8]
call fcn.00401850
mov byte [ebp - 4], 4
mov esi, 0x104
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xb8]
call fcn.004019c0
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00402250
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402020
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xec]
call fcn.0040adc6
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407e29
cmp dword [ebp + 0xd4], 8
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc0]
jae 0x43e105
lea ecx, [ebp + 0xc0]
push eax
push edi
push 0x4b6108
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0040aa24
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.00442683
mov byte [ebp - 4], 7
push ebx
lea eax, [ebp - 0xd]
push eax
push str.ISSetup.dll
lea ecx, [ebp + 0x84]
call fcn.0040a7da
mov byte [ebp - 4], 8
push edi
lea eax, [ebp + 0xec]
push eax
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp]
call fcn.004417cf
cmp eax, ebx
setne bl
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x84]
call fcn.004016a0
test bl, bl
je 0x43e19e
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0xec]
call fcn.00407d6b
jmp 0x43e1a2
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00442213
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xb8]
call fcn.00401640
mov esi, 0x1b59
cmp dword [ebp + 0x104], edi
je 0x43e253
lea eax, [ebp + 0xec]
push eax
lea ecx, [ebp + 0x80]
call fcn.0041a30b
mov byte [ebp - 4], 9
lea ecx, [ebp + 0x80]
call fcn.00418f53
test eax, eax
jne 0x43e21c
mov esi, dword [0x4e0670]
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x80]
call fcn.00419709
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xec]
call fcn.004016a0
jmp 0x43dfc5
push 3
lea ecx, [ebp - 0x34]
call fcn.0041fc65
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call fcn.0041fc65
push eax
lea ecx, [ebp + 0x80]
call fcn.00418fa2
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x80]
call fcn.00419709
cmp byte [ebp - 0xd], 0
je 0x43e275
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x43e26e
lea eax, [ebp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x368], 0
je 0x43e208
lea ecx, [ebp - 0x1c]
call fcn.00405e5a
mov byte [ebp - 4], 0xa
push dword [0x4e0678]
lea ecx, [ebp - 0x1c]
call fcn.0040cbfe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405e6b
jmp 0x43e208