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

Disassembly:
push 0x10c
mov eax, 0x4d2352
call fcn.0049cba1
mov esi, dword [ebp + 8]
and dword [ebp - 0x118], 0
cmp dword [ebp + 0x54], 0
mov ebx, 0x104
mov dword [ebp - 4], 1
jne 0x4935a0
push ebx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp + 0x40]
call fcn.00409430
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00403ed0
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00409a50
sub esp, 0x30
lea ecx, [ebp + 0x40]
push esp
call fcn.00436830
call fcn.00493d04
add esp, 0x30
mov dword [ebp - 0x40], 0x4e1680
lea eax, [ebp - 0x101]
mov dword [ebp - 0x18], 0x4e1670
lea ecx, [ebp - 0x40]
push 0
push eax
call fcn.00404a50
mov bl, byte [ebp + 0xc]
xor edi, edi
mov byte [ebp - 4], 3
test bl, bl
jne 0x49366c
lea eax, [ebp - 0x70]
push eax
call fcn.00492fbf
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 4
push 0x4d6860
push eax
call fcn.0040c800
push 0x4d681c
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
call fcn.0040c930
add esp, 0x1c
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x40]
call fcn.0040de10
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00403fd0
lea ecx, [ebp - 0xd0]
call fcn.00404be0
lea ecx, [ebp - 0xa0]
call fcn.00404be0
lea ecx, [ebp - 0x100]
call fcn.00404be0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00404be0
jmp 0x4936ce
push 0x104
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409430
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00403ed0
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x44]
cmovae ecx, dword [ebp + 0x44]
push dword [eax]
push edi
push 0x4d6864
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.00409a50
test edi, edi
jne 0x4936ce
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 0x49373b
push 1
lea eax, [ebp - 0x101]
push eax
push 0x4db368
lea ecx, [ebp - 0xd0]
call fcn.00404150
push 1
lea eax, [ebp - 0x102]
mov byte [ebp - 4], 9
push eax
push 0x4d686c
lea ecx, [ebp - 0xa0]
call fcn.00404150
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00436940
lea ecx, [ebp - 0xa0]
call fcn.00404be0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x49376d
sub esp, 0x30
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00494111
lea ecx, [ebp - 0x70]
call fcn.00404be0
test bl, bl
jne 0x49379b
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00436830
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00403fd0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00404be0
push 0xc
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
call fcn.004916bb
add esp, 0x34
test al, al
je 0x4937ec
add edi, 1
jns 0x4935dc
push 1
lea eax, [ebp - 0x102]
mov ecx, esi
push eax
push 0x4db368
call fcn.00404240
jmp 0x493835
test bl, bl
jne 0x49381b
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e1680
mov dword [ecx + 0x28], 0x4e1670
call fcn.00406f90
call fcn.00493d04
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
mov dword [esi], 0x4e1680
push eax
mov ecx, esi
mov dword [esi + 0x28], 0x4e1670
call fcn.00406f90
lea ecx, [ebp - 0x40]
call fcn.00404be0
lea ecx, [ebp + 0x10]
call fcn.00404be0
lea ecx, [ebp + 0x40]
call fcn.00404be0
mov eax, esi
call fcn.0049cb4b
ret