Function at 0x4e08e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x43c]
push 0x208
push 0
push eax
mov dword [ebx + 0x10], 0
call fcn.004a35f0
push 0x79f4
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
push 0x4fdc00
push eax
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00407e80
movups xmm0, xmmword [str.__Happykantu__]
mov eax, dword [0x5023a0]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x424], eax
add esp, 0x18
mov ax, word [0x5023a4]
mov esi, edx
movups xmmword [ebp - 0x43c], xmm0
mov word [ebp - 0x420], ax
movq xmm0, qword [0x502398]
movq qword [ebp - 0x42c], xmm0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4e0973
lea edi, [ebp - 0x43c]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4e0990
mov ecx, edx
lea eax, [ebp - 0x43c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4e0bd7
lea eax, [ebp - 0x43c]
xor esi, esi
push eax
push 0x1a24
push esi
push 4
push esi
push 0xffffffffffffffff
mov dword [ebp - 0x850], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4e0b93
push 0x208
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.004a35f0
push 0x208
lea eax, [ebp - 0x84c]
push esi
push eax
call fcn.004a35f0
push 0x208
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.004a35f0
add esp, 0x24
lea eax, [ebp - 0x644]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x2c]
push eax
push str.HappyPicture
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x84c]
push str._s_s_s
push eax
call fcn.00407e80
movups xmm0, xmmword [str.__Happykantu__]
mov eax, dword [0x5023a0]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], eax
add esp, 0x14
mov ax, word [0x5023a4]
add ecx, 0xfffffffe
movups xmmword [ebp - 0x234], xmm0
mov word [ebp - 0x218], ax
movq xmm0, qword [0x502398]
movq qword [ebp - 0x224], xmm0
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4e0aa2
mov eax, dword [str.TEMP__]
lea edx, [ebp - 0x2c]
mov dword [ecx], eax
mov esi, edx
mov eax, dword [0x5023bc]
mov dword [ecx + 4], eax
mov eax, dword [0x5023c0]
mov dword [ecx + 8], eax
mov ax, word [0x5023c4]
mov word [ecx + 0xc], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4e0ad4
lea edi, [ebp - 0x234]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4e0af0
mov ecx, edx
mov dword [ebx + 0x10], 1
shr ecx, 2
lea eax, [ebp - 0x234]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0xf001f
call esi
mov dword [ebx + 8], eax
test eax, eax
jne 0x4e0b8d
lea eax, [ebp - 0x234]
push eax
push 1
push 6
call esi
mov dword [ebx + 8], eax
test eax, eax
jne 0x4e0b8d
push eax
push 0x80
push 4
push eax
push 3
push 0x10000000
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e0bee
lea eax, [ebp - 0x234]
push eax
push 0x1a24
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x850]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4e0bee
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4e0bde
mov dword [ebx + 0x24], eax
test esi, esi
jne 0x4e0bc1
mov ecx, eax
call fcn.004df500
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x4e0b93
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret