Function at 0x531000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e780
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5ce16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x55]
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push eax
push 0
push 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x5c], esi
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
lea ecx, [ebp - 0x34]
call fcn.0052fce0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], 0
cmp ebx, eax
je 0x531295
sub eax, ebx
sar eax, 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x53128d
mov eax, dword [ebp - 0x30]
xor ecx, ecx
add eax, 0xfffffffe
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x53114f
sub eax, ebx
mov dword [ebp - 0x44], ecx
sar eax, 1
push eax
mov word [ebp - 0x54], cx
lea ecx, [ebp - 0x54]
push ebx
mov dword [ebp - 0x40], 7
call fcn.00454c45
cmp dword [ebp - 0x40], 8
lea edx, [ebp - 0x54]
mov esi, dword [ebp - 0x44]
cmovae edx, dword [ebp - 0x54]
mov dword [ebp - 0x60], edx
lea edx, [ebp - 0x54]
cmovae edx, dword [ebp - 0x54]
mov byte [ebp - 4], 3
mov dword [ebp - 0x68], edx
call fcn.0052e3c0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, edi
lea edx, [eax + eax]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x28]
cmovae eax, edi
add edx, eax
lea eax, [ebp - 0x28]
lea ecx, [ecx + esi*2]
mov esi, dword [ebp - 0x64]
sub esi, edx
sar esi, 1
cmp dword [ebp - 0x14], 8
cmovae eax, edi
sub edx, eax
mov eax, dword [ebp - 0x68]
sub ecx, eax
sar edx, 1
sar ecx, 1
push ecx
push eax
push esi
push edx
lea ecx, [ebp - 0x28]
call fcn.0052db00
lea ecx, [ebp - 0x54]
call fcn.00453118
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
test esi, esi
je 0x53117c
push esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00530d40
add esp, 0xc
mov ecx, dword [eax]
cmp ecx, 3
jne 0x531192
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004cd425
jmp 0x5311ed
push 0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00530d40
add esp, 0xc
mov ecx, dword [eax]
cmp ecx, 3
je 0x53116f
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x26
push str.boost::filesystem::temp_directory_path
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.00454b81
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
push esi
lea eax, [ebp - 0x28]
push eax
push 1
call fcn.00530600
add esp, 0x10
lea ecx, [ebp - 0x80]
call fcn.004530e4
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x531227
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x53121d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x531350
push edx
push ecx
call fcn.004dd465
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x53126f
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x531265
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x531350
push ecx
push ebx
call fcn.004dd465
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dd9ae
mov esp, ebp
pop ebp
ret
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x26
push str.boost::filesystem::temp_directory_path
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.00454b81
mov byte [ebp - 4], 1
call fcn.0049db60
test esi, esi
je 0x531355
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x40]
mov dword [ecx], eax
mov dword [ecx + 4], esi
cmp edx, 0x10
jb 0x53130b
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x531301
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53138a
push edx
push ecx
call fcn.004dd465
add esp, 8
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
test ebx, ebx
je 0x53126f
mov ecx, dword [ebp - 0x2c]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x531265
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x531265
call fcn.004e44e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045c810
lea ecx, [ebp - 0xb4]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.0052ff60
push 0x5c93b8
lea eax, [ebp - 0xb4]
push eax
call fcn.004e172a
call fcn.004e44e8
int3