Function at 0x41e6f0
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
mov edi, ecx
lea ebp, [esp + 8]
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41e7af
mov esi, eax
cmp eax, 0x104
jae 0x41e8a7
mov bl, byte [esp + esi + 7]
cmp bl, 0x5c
jne 0x41e995
mov byte [esp + esi + 7], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [edi + 8], 0
push ebp
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x41ea7a
mov ebx, eax
cmp eax, 0xb
jae 0x41e76f
mov eax, ebx
mov esi, edi
add al, bl
inc esi
test ebx, ebx
mov byte [edi], al
jne 0x41e793
jmp 0x41e79e
mov ebp, ebx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.00493b40
add esp, 4
or ebx, 1
mov dword [edi + 8], eax
mov esi, eax
mov dword [edi], ebx
mov ebx, ebp
lea ebp, [esp + 8]
mov dword [edi + 4], ebx
push ebx
push ebp
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov eax, edi
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 4]
nop dword [eax]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 6
push 0
push 0x58
push str.system_core_base_file.cpp
call fcn.0041ff50
mov ecx, esi
call fcn.0041ff40
push 0xe
push 0x520102
push eax
call fcn.00505f80
add esp, 0xc
push 6
push 0x520111
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 2
push 0x52011a
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 3
push 0x52011d
push eax
call fcn.00505f80
add esp, 0xc
push 9
push 0x520121
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, eax
push 0
call fcn.004f9a90
push 6
push str.__0ul
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, eax
push 0
call fcn.004f9a90
push 2
push 0x520132
push eax
call fcn.00505f80
add esp, 0xc
push 0x1c
push str.GetTempPathA_failed__error:
push eax
call fcn.00505f80
add esp, 0xc
mov edi, eax
call ebx
mov ecx, edi
push eax
call fcn.004f9a90
mov ecx, esi
call fcn.00420040
jmp 0x41e7c0
lea edi, [esp + 4]
nop dword [eax + eax]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 6
push 0
push 0x59
push str.system_core_base_file.cpp
call fcn.0041ff50
mov ecx, edi
call fcn.0041ff40
push 0xe
push 0x520102
push eax
call fcn.00505f80
add esp, 0xc
push 6
push 0x520111
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520152
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 0xf
push str.sizeof_tmp_dir_
push eax
call fcn.00505f80
add esp, 0xc
push 9
push 0x520121
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, eax
push esi
call fcn.004f9a90
push 0x12
push str.__sizeof_tmp_dir_
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, eax
push 0x104
call fcn.004f95d0
push 2
push 0x520132
push eax
call fcn.00505f80
add esp, 0xc
push 0x13
push str.path_truncated_to:
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, eax
push esi
call fcn.004f9a90
mov ecx, edi
call fcn.00420040
jmp 0x41e8b0
lea esi, [esp + 4]
lea edi, [esp + 3]
nop dword [eax]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 6
push 0
push 0x5d
push str.system_core_base_file.cpp
call fcn.0041ff50
mov ecx, esi
call fcn.0041ff40
push 0xe
push 0x520102
push eax
call fcn.00505f80
add esp, 0xc
push 0x13
push str.tmp_dir_result___1_
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 2
push 0x52019f
push eax
call fcn.00505f80
add esp, 0xc
push 1
push 0x520118
push eax
call fcn.00505f80
add esp, 0xc
push 4
push 0x5201a2
push eax
call fcn.00505f80
add esp, 0xc
push 0x16
push str.__tmp_dir_result___1_
push eax
call fcn.00505f80
add esp, 0xc
mov byte [esp + 3], bl
push 1
push edi
push eax
call fcn.00505f80
add esp, 0xc
push 7
push 0x5201be
push eax
call fcn.00505f80
add esp, 0xc
mov byte [esp + 3], 0x5c
push 1
push edi
push eax
call fcn.00505f80
add esp, 0xc
push 2
push 0x520132
push eax
call fcn.00505f80
add esp, 0xc
mov ecx, esi
call fcn.00420040
jmp 0x41e9a0
mov ecx, edi
call fcn.004d7ad0
nop word cs:[eax + eax]
nop dword [eax + eax]
push edi
push esi
mov eax, dword [esp + 0xc]
mov byte [ecx + 0x404], 1
mov esi, ecx
lea edi, [ecx + 4]
test byte [eax], 1
je 0x41eaac
mov eax, dword [eax + 8]
jmp 0x41eaad
inc eax
sub esp, 0x14
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 0x10], 0x5c
mov dword [esp + 8], str._s_cTemporaryFile_XXXXXX
call fcn.0041eb40
add esp, 0x14
push edi
call dword [sym.imp.msvcrt.dll__mktemp]
add esp, 4
test eax, eax
je 0x41eaf2
push 0x180
push 0x8502
push edi
call sub.msvcrt.dll__open
add esp, 0xc
jmp 0x41eaf7
mov eax, 0xffffffff
mov dword [esi], eax
pop esi
pop edi
ret 4