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

Disassembly:
mov eax, 0x47770e
call fcn.00444d58
sub esp, 0x2b4
push ebx
push esi
push edi
mov al, byte [ebp + 0x33]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp + 8]
push eax
push 0x3b
mov byte [ebp - 4], 1
call fcn.0042540a
cmp dword [ebp - 0x1c], ebx
je 0x4361af
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, dword [ebp - 0x1c]
pop ecx
mov edi, 0x47b560
mov esi, 0x47b558
cdq
idiv ecx
cmp eax, 3
jne 0x436199
lea eax, [ebp - 0xd]
push ebx
push eax
push 0x498d9c
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x40], esi
call fcn.00408d40
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.00429380
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401bc2
cmp dword [ebp - 0x1c], ebx
je 0x4361af
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, dword [ebp - 0x1c]
pop ecx
cdq
idiv ecx
cmp eax, 4
je 0x4361b7
push 0xfffffffffffffffc
pop esi
jmp 0x4363ea
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
cmp eax, ebx
jne 0x4361c6
mov eax, 0x47b578
push eax
call fcn.0044628a
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
pop ecx
mov eax, dword [eax + 0x58]
cmp eax, ebx
jne 0x4361df
mov eax, 0x47b578
push eax
call fcn.0044628a
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040d8da
pop ecx
pop ecx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
mov byte [ebp - 0xd], bl
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436338
lea eax, [ebp - 0x21]
push ebx
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x40], esi
call fcn.004017e1
mov esi, 0x104
lea eax, [ebp - 0x30]
push esi
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.00408e31
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 5
call fcn.0040198d
push eax
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00408e5e
lea eax, [ebp - 0x30]
push esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.004024e5
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 6
call fcn.0040305e
push eax
push ebx
push 0x492af8
lea ecx, [ebp - 0x60]
mov dword [edi + 8], eax
call fcn.0040198d
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.004025f7
lea eax, [ebp - 0x2c0]
push esi
push eax
push dword [0x49b6f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x1bc]
push eax
call fcn.0043e52b
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 7
call fcn.0040305e
push eax
push str.ISSetup.dll
lea ecx, [ebp - 0x1bc]
call fcn.0043f31a
cmp eax, 1
je 0x436319
cmp dword [ebp - 0x70], ebx
mov esi, dword [0x47b5a8]
je 0x43630a
push dword [ebp - 0x70]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x70], ebx
push esi
push ebx
lea ecx, [ebp - 0x88]
call fcn.00404eea
jmp 0x43631d
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 4
call fcn.0043eb6b
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00401bc2
cmp dword [ebp - 0x80], ebx
mov esi, 0x1b59
je 0x436399
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x64]
push eax
call fcn.0040d7ae
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.0040da17
test eax, eax
jne 0x436375
mov esi, dword [0x49b6ec]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040d8b7
jmp 0x4363db
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x78]
push ecx
lea ecx, [ebp - 0x64]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push eax
call fcn.0040e067
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0040d8b7
cmp byte [ebp - 0xd], bl
je 0x4363b0
lea ecx, [ebp - 0x8c]
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0x30], bl
je 0x4363db
lea ecx, [ebp - 0x30]
call fcn.00401c1f
push dword [0x49b6f8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00401c53
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00401c4c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00401f95
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.004258c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401bc2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret