Function at 0x5d54d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73dfd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 0x24], esi
xor ecx, ecx
mov dword [ebp - 0x20], esi
xor edx, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x5d554c
cmp eax, 0x7fffffff
ja 0x5d5906
push eax
lea ecx, [ebp - 0x24]
call fcn.0047e700
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, ecx
mov dword [ebp - 0x24], esi
push ecx
push 0
push esi
lea edi, [ecx + esi]
mov dword [ebp - 0x1c], edi
call fcn.006f4b50
mov ecx, esi
mov dword [ebp - 0x20], edi
add esp, 0xc
mov dword [ebp - 0x10], ecx
mov edx, edi
mov dword [ebp - 4], 0
cmp ecx, edx
je 0x5d57fa
sub edx, ecx
sar edx, 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5d57f2
mov ecx, esi
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d5590
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0047e880
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.005d2510
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
test esi, esi
je 0x5d566b
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005d5300
add esp, 0xc
cmp dword [eax], 3
jne 0x5d5683
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00489e30
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x5d5622
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5d5618
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5901
push edx
push ecx
call fcn.00503df0
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], 7
test eax, eax
je 0x5d57e0
sub edi, eax
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x5d5664
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5901
mov eax, ecx
push edi
push eax
jmp 0x5d57d8
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005d5300
add esp, 0xc
cmp dword [eax], 3
je 0x5d55da
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x54]
push 0x30
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.0047e6a0
movups xmm0, xmmword [str.boost::filesystem::temp_directory_path]
mov edx, eax
mov dword [ebp - 0x44], 0x26
mov dword [ebp - 0x40], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x794094]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x7940a4]
mov dword [edx + 0x20], ecx
mov ax, word [0x7940a8]
mov word [edx + 0x24], ax
mov byte [edx + 0x26], 0
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 3
call fcn.005d0210
test esi, esi
mov esi, eax
je 0x5d590b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [ecx], eax
mov dword [ecx + 4], esi
cmp edx, 0x10
jb 0x5d5742
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d5738
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5944
push edx
push ecx
call fcn.00503df0
add esp, 8
mov esi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x5d5798
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5d578e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5901
push edx
push ecx
call fcn.00503df0
add esp, 8
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
test ecx, ecx
je 0x5d57e0
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x5d57d6
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5901
push edi
push ecx
call fcn.00503df0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x14
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x54]
push 0x30
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.0047e6a0
movups xmm0, xmmword [str.boost::filesystem::temp_directory_path]
mov edx, eax
mov dword [ebp - 0x44], 0x26
mov dword [ebp - 0x40], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x794094]
movups xmmword [edx + 0x10], xmm0
mov ecx, dword [0x7940a4]
mov dword [edx + 0x20], ecx
mov ax, word [0x7940a8]
mov word [edx + 0x24], ax
mov byte [edx + 0x26], 0
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 1
call fcn.005d0210
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], 0
je 0x5d5949
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [ecx], eax
mov dword [ecx + 4], esi
cmp edx, 0x10
jb 0x5d58b3
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d58a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d5978
push edx
push ecx
call fcn.00503df0
add esp, 8
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
test ecx, ecx
je 0x5d57e0
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x5d57d6
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5d57d6
call fcn.006fee64
call fcn.0048d130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00501610
lea ecx, [ebp - 0x88]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.005d2cc0
push 0x82aacc
lea eax, [ebp - 0x88]
push eax
call fcn.006f41a3
call fcn.006fee64
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00501610
lea ecx, [ebp - 0x88]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.005d2df0
push 0x82aacc
lea eax, [ebp - 0x88]
push eax
call fcn.006f41a3
call fcn.006fee64
int3