Function at 0x4fe79b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a7c
call fcn.0059fbd0
push ebx
push esi
push edi
push 0x3e8
push 3
push 1
push SysReAllocString
push dword [ebp + 0xc]
call fcn.004a1f44
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x16
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401f65
push dword [ebp - 0x4c]
call fcn.0058f8c4
pop ecx
push dword [ebp - 0x4c]
mov esi, eax
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401f65
push esi
call fcn.0058f8c9
xor ebx, ebx
pop ecx
mov byte [ebp + 0xf], bl
mov dword [ebp - 0xc], ebx
jmp 0x4fe8ee
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1f], bl
mov word [ebp - 0x18], bx
mov word [ebp - 0x16], bx
mov word [ebp - 0x1c], bx
mov word [ebp - 0x1a], bx
mov byte [ebp - 0x14], 0x7d
jl 0x4fe83b
mov byte [ebp - 0xf], 1
jmp 0x4fe843
neg eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0xf], bl
push dword [ebp - 0xc]
mov dword [ebp - 0x13], eax
lea eax, [ebp - 0xa78]
push eax
push str._s__u.aud
mov esi, 0x104
lea edi, [ebp - 0x668]
call fcn.004a9039
add esp, 0xc
mov eax, edi
push eax
lea esi, [ebp - 4]
call fcn.00447609
cmp dword [ebp - 4], 0xffffffff
je 0x4fe906
push 0x1000
lea eax, [ebp - 0x1a78]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401f65
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1a78]
push eax
lea esi, [ebp - 0x24]
call fcn.004fea0e
movzx eax, ax
cmp ax, di
jge 0x4fe8c4
movsx eax, ax
push 1
sub eax, edi
cdq
push ebx
push edx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [ebp - 0x13], ebx
jbe 0x4fe961
cmp edi, 0x1000
jae 0x4fe87d
mov byte [ebp + 0xf], 1
push dword [ebp - 4]
inc dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xf], bl
jne 0x4fe906
push 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401f65
cmp eax, 0xc
je 0x4fe811
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
jle 0x4fe9e1
push dword [ebp + 0xc]
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x668]
push str._s__d.aud
push eax
call fcn.00401000
add esp, 0x10
lea eax, [ebp - 0x668]
push eax
lea esi, [ebp - 0x28]
call fcn.00401fa9
push 0x3e
call fcn.004a8f86
cmp eax, ebx
pop ecx
je 0x4fe976
push 0xffffffffffffffff
push 1
mov ecx, esi
push ecx
mov edx, 0x2b11
call fcn.0055c5ea
jmp 0x4fe978
cmp byte [ebp - 0x24], bl
jne 0x4fe8d5
mov word [ebp - 0x668], bx
jmp 0x4fe8d9
xor eax, eax
lea esi, [ebp - 0x2c]
call fcn.0050a3eb
push 0x10
call fcn.004a8f86
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4fe9a3
lea esi, [edi + 4]
lea eax, [ebp - 0x2c]
mov dword [edi], ebx
call fcn.0050a3c7
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
jmp 0x4fe9a5
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [edi], ebx
jne 0x4fe9b5
mov dword [ebp - 4], edi
jmp 0x4fe9bb
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x4fe9b3
mov dword [eax], edi
lea ecx, [ebp - 0x2c]
call fcn.0050a40d
cmp dword [ebp - 0x28], 0xffffffff
je 0x4fe9d2
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jl 0x4fe915
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0050ad82
lea esi, [ebp - 4]
call fcn.0056eae4
cmp dword [ebp - 8], 0xffffffff
je 0x4fea04
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8