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

Disassembly:
mov eax, 0x479a1e
call fcn.004461a8
sub esp, 0x4b8
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.00425cb5
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x437036
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, ecx
pop esi
cdq
idiv esi
mov edi, 0x47e5a0
mov esi, 0x47e598
cmp eax, 3
jne 0x437020
lea eax, [ebp - 0xd]
push ebx
push eax
push 0x49cc4c
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.00408d43
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.00429c9d
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401bc7
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x437036
mov eax, dword [ebp - 0x18]
push 0x28
sub eax, ecx
pop ebx
cdq
idiv ebx
cmp eax, 4
je 0x43703e
xor ebx, ebx
push 0xfffffffffffffffc
pop esi
jmp 0x437278
mov ecx, dword [ecx + 0x30]
xor ebx, ebx
cmp ecx, ebx
jne 0x43704c
mov ecx, 0x47e5b8
push ecx
call fcn.00447221
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
pop ecx
mov eax, dword [eax + 0x58]
cmp eax, ebx
jne 0x437065
mov eax, 0x47e5b8
push eax
call fcn.00447221
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040d4b8
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 3
cmp eax, ebx
mov byte [ebp - 0xd], bl
jne 0x43708f
mov eax, 0x47e608
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4371c5
lea eax, [ebp - 0xe]
push ebx
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], esi
call fcn.004017e6
mov esi, 0x104
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00408e34
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00408ddf
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00408e61
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x88]
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 6
mov byte [eax + 4], 1
call fcn.00402a6a
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax]
cmp ecx, ebx
jne 0x437119
mov ecx, 0x47e5b8
push eax
push ebx
push 0x4964f8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004024ef
lea eax, [ebp - 0x4c4]
push esi
push eax
push dword [0x4a1c18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4c4]
lea ecx, [ebp - 0x2bc]
push eax
call fcn.0043f42b
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x437169
mov eax, 0x47e608
push ebx
push eax
push str.ISSetup.dll
lea ecx, [ebp - 0x2bc]
call fcn.00440182
cmp eax, 1
je 0x4371a6
cmp dword [ebp - 0x6c], ebx
mov esi, dword [0x47e5e8]
je 0x437197
push dword [ebp - 0x6c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x6c], ebx
push esi
push ebx
lea ecx, [ebp - 0x84]
call fcn.00404b46
jmp 0x4371aa
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 4
call fcn.0043fa6b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401bc7
cmp dword [ebp - 0x7c], ebx
mov esi, 0x1b59
je 0x437226
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x60]
push eax
call fcn.0040d385
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.0040d5f2
test eax, eax
jne 0x437202
mov esi, dword [0x4a1c0c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0040d495
jmp 0x437269
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x78]
push ecx
lea ecx, [ebp - 0x60]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
call fcn.0040dc46
lea ecx, [ebp - 0x60]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.0040d495
cmp byte [ebp - 0xd], bl
je 0x43723e
mov eax, dword [ebp - 0x80]
cmp eax, ebx
jne 0x437237
mov eax, 0x47e608
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x30], bl
je 0x437269
lea ecx, [ebp - 0x2c]
call fcn.00401c24
push dword [0x4a1c18]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00401c58
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401c51
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00401f6c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00426170
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401bc7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret