Function at 0x488ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x28]
push ebx
sub esp, 0x4c
mov dword [ebp - 0x38], 0
mov esi, dword [ebp + 8]
call fcn.004b3ea0
mov dword [ebp - 0x30], edi
mov edx, 0x400
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
lea esi, [esi]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.004beec0
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
sub esp, 8
mov edx, eax
cmp dword [ebp - 0x2c], eax
jb 0x488f20
test eax, eax
je 0x488fe0
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edx
call fcn.004beec0
mov eax, dword [ebp - 0x30]
lea edx, [esi + 8]
mov ebx, dword [ebp - 0x2c]
sub esp, 8
mov dword [esi], edx
cmp eax, edi
je 0x489038
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], eax
mov dword [esi + 4], ebx
lea ebx, [esi + 0x18]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], ax
call fcn.0048d980
mov ecx, esi
call fcn.0048cca0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x488fc6
mov edx, dword [ebp - 0x28]
mov dword [esp], eax
lea edx, [edx + edx + 2]
mov dword [esp + 4], edx
call fcn.004ce6f0
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x489000
cmp dword [esi + 4], 0
je 0x4d3400
jmp 0x4d348f
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
jmp 0x488f57
lea eax, [ebp - 0x38]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00489e40
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x488fcd
cmp al, 2
je 0x48902b
call fcn.004b3eb0
mov dword [ebp - 0x38], 0x14
mov dword [ebp - 0x34], eax
jmp 0x488fcd
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx + 2]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
jmp 0x488f88
mov dword [esp], 0x18
call fcn.004ce810
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov dword [esp], str.temp_directory_path
call fcn.004bc3a0
push edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call fcn.0048a7d0
sub esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004b8e40
mov dword [esp + 8], 0x48a9d0
mov dword [esp + 4], 0x4e9168
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004ced90
mov ecx, ebx
call fcn.00493950
mov ecx, esi
call fcn.004bd270
lea ecx, [ebp - 0x30]
call fcn.004bd270
mov dword [esp], edi
call fcn.0040ea90
lea ecx, [ebp - 0x30]
call fcn.004bd270
mov dword [esp], ebx
call fcn.0040ea90
mov dword [esp], 0x18
call fcn.004ce810
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov dword [esp], str.temp_directory_path
call fcn.004bc3a0
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
mov ecx, dword [ebp - 0x3c]
call fcn.0048a6b0
sub esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.004b8e40
mov dword [esp + 8], 0x48a9d0
mov dword [esp + 4], 0x4e9168
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004ced90
mov edi, eax
mov ecx, ebx
call fcn.00493950
mov ecx, esi
call fcn.004bd270
mov dword [esp], edi
call fcn.0040ea90
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.004b8e40
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004cea80
jmp 0x4d34f6