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

Disassembly:
push 0x13c
mov eax, 0x4b072c
call fcn.00454652
mov esi, dword [ebp + 8]
and dword [ebp - 0x148], 0
cmp dword [ebp + 0x54], 0
mov dword [ebp - 4], 1
mov ebx, 0x104
jne 0x486af8
push ebx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp + 0x40]
call fcn.004160cc
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00416071
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00411bd3
sub esp, 0x30
lea ecx, [ebp + 0x40]
push esp
call fcn.0041634a
call fcn.00488d95
add esp, 0x30
lea eax, [ebp - 0x131]
push 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4cc0d0
mov dword [ebp - 0x18], 0x4cc070
call fcn.00403e30
mov bl, byte [ebp + 0xc]
mov byte [ebp - 4], 3
xor edi, edi
test bl, bl
jne 0x486bca
lea eax, [ebp - 0xa0]
push eax
call fcn.004863ac
push eax
lea eax, [ebp - 0x100]
push 0x4c4db4
push eax
mov byte [ebp - 4], 4
call fcn.004181dd
push 0x4b7a20
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 5
call fcn.004201c8
add esp, 0x1c
push eax
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 6
call fcn.004178c6
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00411c81
lea ecx, [ebp - 0xd0]
call fcn.00401b80
lea ecx, [ebp - 0x130]
call fcn.00401b80
lea ecx, [ebp - 0x100]
call fcn.00401b80
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00401b80
jmp 0x486c2c
push 0x104
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x40]
call fcn.004160cc
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00416071
push dword [eax]
cmp dword [ebp + 0x58], 8
push edi
lea ecx, [ebp + 0x44]
cmovae ecx, dword [ebp + 0x44]
push 0x4c4db8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 3
call fcn.00411bd3
test edi, edi
jne 0x486c2c
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 0x486cae
push 1
lea eax, [ebp - 0x131]
push eax
push 0x4cbeac
lea ecx, [ebp - 0xd0]
call fcn.00411357
push 1
lea eax, [ebp - 0x131]
push eax
push 0x4c4dc0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00411357
push dword [ebp - 0x5c]
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.00415d9f
cmp eax, 0xffffffff
je 0x486c9a
lea ecx, [ebp - 0xd0]
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push eax
call fcn.004169d3
lea ecx, [ebp - 0x70]
call fcn.00401b80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x486ce0
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp + 0x10]
push eax
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00489466
lea ecx, [ebp - 0xa0]
call fcn.00401b80
test bl, bl
jne 0x486d14
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041634a
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00411c81
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.00401b80
push 0xc
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
call fcn.00483726
add esp, 0x34
test al, al
je 0x486d5d
inc edi
jns 0x486b34
push 1
lea eax, [ebp - 0x131]
push eax
push 0x4cbeac
mov ecx, esi
call fcn.004115ed
jmp 0x486da0
test bl, bl
jne 0x486d86
sub esp, 0x30
mov ecx, esp
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ecx], 0x4cc0d0
mov dword [ecx + 0x28], 0x4cc070
call fcn.00411254
call fcn.00488d95
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov dword [esi], 0x4cc0d0
mov dword [esi + 0x28], 0x4cc070
call fcn.00411254
lea ecx, [ebp - 0x40]
call fcn.00401b80
lea ecx, [ebp + 0x10]
call fcn.00401b80
lea ecx, [ebp + 0x40]
call fcn.00401b80
mov eax, esi
call fcn.00454601
ret