Function at 0x499800
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4fa2d3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x543f30]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x543f30]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00498340
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xa8], ebx
cmp ecx, ebp
je 0x499a0c
mov eax, ebp
sub eax, ecx
sar eax, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x499a04
sub ebp, 2
push ebp
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0x34]
call fcn.004984a0
mov byte [esp + 0xa8], 2
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
cmp esi, ebx
je 0x49992d
push esi
push eax
push ecx
call fcn.004994e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x18], edx
cmp ecx, 3
jne 0x499946
push 0xffffffffffffffff
xor ecx, ecx
mov esi, 7
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push ebx
lea edx, [esp + 0x34]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00401450
cmp dword [esp + 0x40], 8
jb 0x499910
mov eax, dword [esp + 0x2c]
push eax
call fcn.0049d71c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
cmp ebp, ebx
je 0x499aa5
push ebp
jmp 0x499a9d
push ebx
push eax
push ecx
call fcn.004994e0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x18], edx
cmp ecx, 3
je 0x4998dd
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x26
push str.boost::filesystem::temp_directory_path
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401570
mov byte [esp + 0xa8], 3
call fcn.0049c390
cmp esi, ebx
jne 0x4999ab
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x74]
call fcn.00498db0
push 0x52e6ac
lea edx, [esp + 0x68]
push edx
call fcn.004a4e0b
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x5c], 0x10
mov dword [esi], eax
mov dword [esi + 4], ebp
jb 0x4999cc
mov eax, dword [esp + 0x48]
push eax
call fcn.0049d71c
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], cx
cmp dword [esp + 0x40], 8
jb 0x4999f0
mov edx, dword [esp + 0x2c]
push edx
call fcn.0049d71c
add esp, 4
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
jmp 0x499a94
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x26
push str.boost::filesystem::temp_directory_path
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401570
mov byte [esp + 0xa8], 1
call fcn.0049c390
cmp esi, ebx
jne 0x499a64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x70]
call fcn.00498aa0
push 0x52e6ac
lea eax, [esp + 0x68]
push eax
call fcn.004a4e0b
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x5c], 0x10
mov dword [esi], eax
mov dword [esi + 4], ebp
jb 0x499a85
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0049d71c
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], dx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x499aa5
push eax
call fcn.0049d71c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0049d196
add esp, 0x98
ret