Function at 0x490aab
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x13c
mov eax, 0x4ced2c
call fcn.0049a06f
mov esi, dword [ebp + 8]
and dword [ebp - 0x148], 0
cmp dword [ebp + 0x54], 0
mov ebx, 0x104
mov dword [ebp - 4], 1
jne 0x490b0d
push ebx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp + 0x40]
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00404040
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00409da0
sub esp, 0x30
lea ecx, [ebp + 0x40]
push esp
call fcn.004092a0
call fcn.004912ac
add esp, 0x30
mov dword [ebp - 0x40], 0x4dd804
lea eax, [ebp - 0x131]
mov dword [ebp - 0x18], 0x4dcac4
lea ecx, [ebp - 0x40]
push 0
push eax
call fcn.00404c20
mov bl, byte [ebp + 0xc]
xor edi, edi
mov byte [ebp - 4], 3
test bl, bl
jne 0x490bdf
lea eax, [ebp - 0xa0]
push eax
call fcn.0049052c
push eax
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 4
push 0x4d2880
push eax
call fcn.0040c530
push 0x4d283c
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push eax
call fcn.0040c740
add esp, 0x1c
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x40]
call fcn.00408bb0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00404140
lea ecx, [ebp - 0xd0]
call fcn.00404db0
lea ecx, [ebp - 0x100]
call fcn.00404db0
lea ecx, [ebp - 0x130]
call fcn.00404db0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00404db0
jmp 0x490c41
push 0x104
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409e80
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00404040
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x44]
cmovae ecx, dword [ebp + 0x44]
push dword [eax]
push edi
push 0x4d2884
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 3
call fcn.00409da0
test edi, edi
jne 0x490c41
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x24], 0
jne 0x490cc3
push 1
lea eax, [ebp - 0x131]
push eax
push 0x4d7438
lea ecx, [ebp - 0xd0]
call fcn.004042c0
push 1
lea eax, [ebp - 0x132]
mov byte [ebp - 4], 9
push eax
push 0x4d288c
lea ecx, [ebp - 0x70]
call fcn.004042c0
push dword [ebp - 0x5c]
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 0
cmovae eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00407f40
cmp eax, 0xffffffff
je 0x490caf
lea ecx, [ebp - 0xd0]
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407f10
lea ecx, [ebp - 0x70]
call fcn.00404db0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x490cfb
sub esp, 0x30
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x138], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00491691
lea ecx, [ebp - 0xa0]
call fcn.00404db0
test bl, bl
jne 0x490d2f
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.004092a0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00404140
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00404db0
push 0xc
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x138], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.0048ec8c
add esp, 0x34
test al, al
je 0x490d80
add edi, 1
jns 0x490b49
push 1
lea eax, [ebp - 0x132]
mov ecx, esi
push eax
push 0x4d7438
call fcn.004043b0
jmp 0x490dc9
test bl, bl
jne 0x490daf
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x138], ecx
push 0
push eax
mov dword [ecx], 0x4dd804
mov dword [ecx + 0x28], 0x4dcac4
call fcn.00407160
call fcn.004912ac
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
mov dword [esi], 0x4dd804
push eax
mov ecx, esi
mov dword [esi + 0x28], 0x4dcac4
call fcn.00407160
lea ecx, [ebp - 0x40]
call fcn.00404db0
lea ecx, [ebp + 0x10]
call fcn.00404db0
lea ecx, [ebp + 0x40]
call fcn.00404db0
mov eax, esi
call fcn.0049a019
ret