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

Disassembly:
push 0x10c
mov eax, 0x4d9cad
call fcn.004a1e4e
mov esi, dword [ebp + 8]
and dword [ebp - 0x118], 0
cmp dword [ebp + 0x54], 0
mov ebx, 0x104
mov dword [ebp - 4], 1
jne 0x4988ca
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.00439040
call fcn.004990ff
add esp, 0x30
mov dword [ebp - 0x40], 0x4e81b4
lea eax, [ebp - 0x101]
mov dword [ebp - 0x18], 0x4e8f38
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 0x498996
lea eax, [ebp - 0x70]
push eax
call fcn.004982e9
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 0x4989f8
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 0x4989f8
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 0x498a65
push 1
lea eax, [ebp - 0x101]
push eax
push 0x4e23a8
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.00439150
lea ecx, [ebp - 0xa0]
call fcn.00404c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x498a97
sub esp, 0x30
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043e600
lea ecx, [ebp - 0x70]
call fcn.00404c20
test bl, bl
jne 0x498ac5
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00439040
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], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
call fcn.004969e5
add esp, 0x34
test al, al
je 0x498b16
add edi, 1
jns 0x498906
push 1
lea eax, [ebp - 0x102]
mov ecx, esi
push eax
push 0x4e23a8
call fcn.00404280
jmp 0x498b5f
test bl, bl
jne 0x498b45
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e81b4
mov dword [ecx + 0x28], 0x4e8f38
call fcn.00406fd0
call fcn.004990ff
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
mov dword [esi], 0x4e81b4
push eax
mov ecx, esi
mov dword [esi + 0x28], 0x4e8f38
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.004a1df8
ret