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

Disassembly:
push 0x10c
mov eax, 0x4d9665
call fcn.004a185e
mov esi, dword [ebp + 8]
and dword [ebp - 0x118], 0
cmp dword [ebp + 0x54], 0
mov ebx, 0x104
mov dword [ebp - 4], 1
jne 0x4983aa
push ebx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp + 0x40]
call fcn.00409470
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00403f10
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.00409a90
sub esp, 0x30
lea ecx, [ebp + 0x40]
push esp
call fcn.00438f00
call fcn.00498b0e
add esp, 0x30
mov dword [ebp - 0x40], 0x4e7a18
lea eax, [ebp - 0x101]
mov dword [ebp - 0x18], 0x4e86a8
lea ecx, [ebp - 0x40]
push 0
push eax
call fcn.00404a90
mov bl, byte [ebp + 0xc]
xor edi, edi
mov byte [ebp - 4], 3
test bl, bl
jne 0x498476
lea eax, [ebp - 0x70]
push eax
call fcn.00497dc9
push eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 4
push 0x4dd880
push eax
call fcn.0040c840
push 0x4dd83c
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 5
push eax
call fcn.0040c970
add esp, 0x1c
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp + 0x40]
call fcn.0040de70
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00404010
lea ecx, [ebp - 0xd0]
call fcn.00404c20
lea ecx, [ebp - 0xa0]
call fcn.00404c20
lea ecx, [ebp - 0x100]
call fcn.00404c20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00404c20
jmp 0x4984d8
push 0x104
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409470
mov ecx, dword [eax]
mov byte [ebp - 4], 8
mov byte [eax + 4], 1
call fcn.00403f10
cmp dword [ebp + 0x58], 8
lea ecx, [ebp + 0x44]
cmovae ecx, dword [ebp + 0x44]
push dword [eax]
push edi
push 0x4dd884
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.00409a90
test edi, edi
jne 0x4984d8
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 0x498545
push 1
lea eax, [ebp - 0x101]
push eax
push 0x4e2398
lea ecx, [ebp - 0xd0]
call fcn.00404190
push 1
lea eax, [ebp - 0x102]
mov byte [ebp - 4], 9
push eax
push 0x4dd88c
lea ecx, [ebp - 0xa0]
call fcn.00404190
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.00439010
lea ecx, [ebp - 0xa0]
call fcn.00404c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x498577
sub esp, 0x30
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043e390
lea ecx, [ebp - 0x70]
call fcn.00404c20
test bl, bl
jne 0x4985a5
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00438f00
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.00404010
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00404c20
push 0xc
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
call fcn.004964c5
add esp, 0x34
test al, al
je 0x4985f6
add edi, 1
jns 0x4983e6
push 1
lea eax, [ebp - 0x102]
mov ecx, esi
push eax
push 0x4e2398
call fcn.00404280
jmp 0x49863f
test bl, bl
jne 0x498625
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e7a18
mov dword [ecx + 0x28], 0x4e86a8
call fcn.00406fd0
call fcn.00498b0e
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
mov dword [esi], 0x4e7a18
push eax
mov ecx, esi
mov dword [esi + 0x28], 0x4e86a8
call fcn.00406fd0
lea ecx, [ebp - 0x40]
call fcn.00404c20
lea ecx, [ebp + 0x10]
call fcn.00404c20
lea ecx, [ebp + 0x40]
call fcn.00404c20
mov eax, esi
call fcn.004a1808
ret