Function at 0x637520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x777da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [0x83b878]
mov dword [edx], eax
mov dword [ebp - 4], 2
mov eax, dword [0x83b878]
mov dword [ebp - 0x28], eax
test ebx, ebx
mov dword [ebp - 0x24], eax
je 0x637572
movzx eax, byte [ebx]
mov byte [ebx], 0
mov byte [ebp - 0x14], al
jmp 0x637579
mov byte [ebp - 0x14], 0
lea ebx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x24]
add esp, 0xffffffec
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
call fcn.006377d0
add esp, 0x14
mov edi, dword [ebp - 0x28]
mov eax, dword [edi - 8]
test eax, eax
jne 0x6375f2
lea eax, [ebp - 0x2c]
push edi
mov dword [esp], eax
call fcn.00637a80
pop ecx
mov dword [ebp - 4], 4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00620770
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x6375e5
dec eax
mov dword [ecx], eax
je 0x6375ea
mov edi, dword [ebp - 0x28]
jmp 0x6375f2
call fcn.0061ff50
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], ecx
push 0x105
call fcn.0061f9e0
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], eax
push eax
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
mov edx, 1
xor esi, esi
cmp eax, 0
cmove esi, edx
call fcn.0061fa10
test esi, esi
je 0x637651
push dword [0x7a1f64]
mov ecx, dword [ebp + 8]
push 0
call fcn.0061f6f0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x637710
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x63766f
mov edx, dword [esi]
cmp edx, 0xffffffff
je 0x637676
mov eax, 1
jmp 0x6376a6
movzx ecx, byte [ebp - 0x14]
mov byte [ebx], cl
add esp, 0xfffffff8
mov edx, ebx
call fcn.00637a20
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x6376a4
mov ecx, esi
call fcn.0063afb0
mov byte [esi + 4], 0
mov dword [esi], edi
mov eax, 1
jmp 0x6376a6
xor eax, eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x6376d2
mov ecx, dword [edx]
test ecx, ecx
jne 0x6376d2
movzx eax, byte [ebp - 0x14]
mov byte [ebx], al
add esp, 0xfffffff4
mov dword [esp], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.00637920
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x637735
call fcn.00629330
test eax, eax
je 0x6377ad
push 0
push str.Failed_to_open_temporary_file.
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
push edi
mov dword [esp], eax
call fcn.00630250
pop ecx
push dword [0x7a1f64]
mov ecx, dword [ebp + 8]
push 0
call fcn.0061f6f0
jmp 0x637735
call fcn.00629330
test eax, eax
je 0x6377b7
push 0
push str.Failed_to_create_a_temporary_file_name
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
push edi
mov dword [esp], eax
call fcn.006304c0
pop ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x637753
dec eax
mov dword [ecx], eax
jne 0x637753
call fcn.0061ff50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff4
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x637771
dec eax
mov dword [ecx], eax
jne 0x637771
call fcn.0061ff50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, str.Failed_to_open_temporary_file.
jmp 0x6376f4
mov eax, str.Failed_to_create_a_temporary_file_name
jmp 0x63772b