Function at 0x53eab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dccfe
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x24], 0x5f85c4
mov dword [ebp - 0x20], str.TEMP
mov dword [ebp - 0x1c], str.LOCALAPPDATA
mov dword [ebp - 0x18], str.USERPROFILE
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], 1
xor edi, edi
mov eax, 0x5f85c4
nop
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0053edd0
add esp, 8
cmp dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
je 0x53ebe8
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ab20
cmp edi, 2
jl 0x53eb6d
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.0053b420
mov dword [ebp - 0x5c], 0
call fcn.00505aa0
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0053e870
mov eax, dword [ebp - 0x78]
add esp, 0xc
test eax, eax
je 0x53ebd1
cmp eax, 1
je 0x53ebd1
cmp dword [ebp - 0x5c], 0
sete al
test al, al
je 0x53ebd1
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0053e870
add esp, 0xc
cmp dword [ebp - 0x64], 3
sete al
test al, al
je 0x53ebd1
cmp dword [ebp - 0x5c], 0
sete al
test al, al
jne 0x53ec16
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x3c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x53ec03
inc eax
push 2
push eax
push dword [ebp - 0x54]
call fcn.0040b970
add esp, 0xc
mov eax, dword [ebp + edi*4 - 0x20]
inc edi
mov byte [ebp - 4], 1
test eax, eax
jne 0x53eb30
jmp 0x53ec22
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040a7f0
cmp dword [ebp - 0x2c], 0
jne 0x53ecb2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push eax
lea ecx, [ebp - 0x68]
call fcn.00462690
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
cmp edi, ecx
mov byte [ebp - 4], 4
sete al
test al, al
jne 0x53ecd8
sub ecx, edi
sar ecx, 1
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x53ecd8
cmp word [edi], 0
jne 0x53ec70
xor ecx, ecx
jmp 0x53ec84
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53ec75
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040b190
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.0053b420
mov eax, dword [ebp - 0x60]
sub eax, edi
mov byte [ebp - 4], 8
sar eax, 1
push 2
push eax
push edi
call fcn.0040b970
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x53ed3e
mov eax, dword [esi]
jmp 0x53ed40
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053dc30
add esp, 0xc
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x53ed07
mov eax, dword [esi]
jmp 0x53ed09
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 6
test edi, edi
je 0x53ed29
mov eax, dword [ebp - 0x60]
sub eax, edi
sar eax, 1
push 2
push eax
push edi
call fcn.0040b970
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 7
cmp ecx, 8
jb 0x53edae
push 2
inc ecx
push ecx
jmp 0x53eda3
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
cmp esi, eax
je 0x53ed90
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x53ed66
inc eax
push 2
push eax
push dword [esi]
call fcn.0040b970
add esp, 0xc
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x53ed7e
mov eax, dword [esi]
jmp 0x53ed80
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.004096f0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xb
cmp eax, 8
jb 0x53edae
push 2
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.0040b970
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret