Function at 0x4c8f70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x519b33
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x56a8e0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a8e0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa8]
push 0
push 0
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004780a0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x9c], 0
cmp ebx, esi
je 0x4c912c
mov eax, esi
sub eax, ebx
sar eax, 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4c9124
sub esi, 2
push esi
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], esi
call fcn.004c7640
mov byte [esp + 0x9c], 2
lea eax, [esp + 0x2c]
test ebp, ebp
je 0x4c907e
push ebp
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c8dc0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp ecx, 3
jne 0x4c909c
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push eax
mov word [edi], ax
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0040c920
jmp 0x4c90f5
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c8dc0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp ecx, 3
je 0x4c905a
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.boost::filesystem::temp_directory_path
lea ecx, [esp + 0x48]
call fcn.00406260
lea eax, [esp + 0x44]
push eax
push ebp
lea eax, [esp + 0x34]
push eax
push 1
mov byte [esp + 0xac], 3
call fcn.004c81b0
add esp, 0x10
cmp dword [esp + 0x58], 0x10
jb 0x4c90e2
push dword [esp + 0x44]
call fcn.00493278
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x40], 8
jb 0x4c9108
push dword [esp + 0x2c]
call fcn.00493278
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jmp 0x4c91b5
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x26
push str.boost::filesystem::temp_directory_path
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.0040c820
mov byte [esp + 0x9c], 1
call fcn.004ca800
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebp, ebp
jne 0x4c9189
push esi
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x68]
call fcn.004c7b60
push 0x553684
lea eax, [esp + 0x60]
push eax
call fcn.00493d65
cmp dword [esp + 0x58], 0x10
mov dword [ebp], eax
mov dword [ebp + 4], esi
jb 0x4c91a2
push dword [esp + 0x44]
call fcn.00493278
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
test ebx, ebx
je 0x4c91c2
push ebx
call fcn.00493278
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00493d56
add esp, 0x8c
ret