Function at 0x49cf27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a7c
call fcn.0052d050
push ebx
push esi
push edi
push 0x3e8
push dword [ebp + 0xc]
lea esi, [ebp - 8]
call fcn.00401e5a
lea eax, [ebp - 0xa78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x16
lea eax, [ebp - 0x50]
push eax
mov eax, esi
push eax
call fcn.00401e16
push dword [ebp - 0x4c]
call fcn.0051fd80
pop ecx
push dword [ebp - 0x4c]
mov esi, eax
push esi
lea eax, [ebp - 8]
push eax
call fcn.00401e16
push esi
call fcn.00520947
xor ebx, ebx
pop ecx
mov byte [ebp + 0xf], bl
mov dword [ebp - 0xc], ebx
jmp 0x49d070
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 0x49cfbd
mov byte [ebp - 0xf], 1
jmp 0x49cfc5
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.0044b138
add esp, 0xc
mov eax, edi
push eax
lea esi, [ebp - 4]
call fcn.00424315
cmp dword [ebp - 4], 0xffffffff
je 0x49d088
push 0x1000
lea eax, [ebp - 0x1a78]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401e16
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1a78]
push eax
lea esi, [ebp - 0x24]
call fcn.0049d18d
movzx eax, ax
cmp ax, di
jge 0x49d046
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 0x49d0e3
cmp edi, 0x1000
jae 0x49cfff
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 0x49d088
push 0xc
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401e16
cmp eax, 0xc
je 0x49cf93
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], ebx
jle 0x49d160
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.00401e77
push 0x32
call fcn.0044b085
cmp eax, ebx
pop ecx
je 0x49d0f8
push 0xffffffffffffffff
push 1
mov ecx, esi
push ecx
mov edx, 0x2b11
call fcn.004f30d4
jmp 0x49d0fa
cmp byte [ebp - 0x24], bl
jne 0x49d057
mov word [ebp - 0x668], bx
jmp 0x49d05b
xor eax, eax
lea esi, [ebp - 0x2c]
call fcn.004a4834
push 0xc
call fcn.0044b085
mov edi, eax
cmp edi, ebx
pop ecx
je 0x49d122
lea esi, [edi + 4]
lea eax, [ebp - 0x2c]
mov dword [edi], ebx
call fcn.004a4810
mov dword [edi + 8], ebx
jmp 0x49d124
xor edi, edi
mov eax, dword [ebp - 4]
cmp eax, ebx
mov dword [edi], ebx
jne 0x49d134
mov dword [ebp - 4], edi
jmp 0x49d13a
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x49d132
mov dword [eax], edi
lea eax, [ebp - 0x2c]
call fcn.004a4856
cmp dword [ebp - 0x28], 0xffffffff
je 0x49d151
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 0x49d097
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.004a4dec
lea esi, [ebp - 4]
call fcn.004f4875
cmp dword [ebp - 8], 0xffffffff
je 0x49d183
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