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

Disassembly:
push 0x10c
mov eax, 0x4d979d
call fcn.004a19ce
mov esi, dword [ebp + 8]
and dword [ebp - 0x118], 0
cmp dword [ebp + 0x54], 0
mov ebx, 0x104
mov dword [ebp - 4], 1
jne 0x498400
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.00498c35
add esp, 0x30
mov dword [ebp - 0x40], 0x4e7908
lea eax, [ebp - 0x101]
mov dword [ebp - 0x18], 0x4e793c
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 0x4984cc
lea eax, [ebp - 0x70]
push eax
call fcn.00497e1f
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 0x49852e
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 0x49852e
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 0x49859b
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.00439010
lea ecx, [ebp - 0xa0]
call fcn.00404c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd0]
jmp 0x4985cd
sub esp, 0x30
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
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 0x4985fb
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], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
call fcn.0049651b
add esp, 0x34
test al, al
je 0x49864c
add edi, 1
jns 0x49843c
push 1
lea eax, [ebp - 0x102]
mov ecx, esi
push eax
push 0x4e23a8
call fcn.00404280
jmp 0x498695
test bl, bl
jne 0x49867b
sub esp, 0x30
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x108], ecx
push 0
push eax
mov dword [ecx], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
call fcn.00498c35
add esp, 0x30
push 0
lea eax, [ebp - 0x40]
mov dword [esi], 0x4e7908
push eax
mov ecx, esi
mov dword [esi + 0x28], 0x4e793c
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.004a1978
ret