Function at 0x4f07f0
Capabilities:
Get common file path
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x581fbc
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x468], esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x460], xmm0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x464], 0xffffffff
mov dword [ebp - 0x458], eax
cmp eax, 0x200000
ja 0x4f08e4
push eax
mov dword [ebp - 0x45c], 1
call fcn.005338bd
add esp, 4
mov dword [ebp - 0x454], eax
test eax, eax
je 0x4f08f1
xorps xmm0, xmm0
add esi, 8
movlpd qword [ebp - 0x474], xmm0
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x470], esi
je 0x4f089a
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 4], 0
call fcn.004f0680
movups xmm0, xmmword [ebp - 0x464]
movups xmmword [eax], xmm0
mov ecx, dword [ebp - 0x454]
mov dword [eax + 0x10], ecx
mov dword [ebp - 4], 1
test esi, esi
je 0x4f08d7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov esi, dword [ebp - 0x468]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x454], 0
jne 0x4f0bd3
mov edi, 7
mov dword [ebp - 0x45c], 0
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], edi
mov word [ebp - 0x450], ax
push 0x208
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 2
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4f09b8
cmp eax, 0x104
ja 0x4f09b8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5a6a58
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4f09b8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0990
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00412a70
mov edi, dword [ebp - 0x43c]
movups xmm0, xmmword [ebp - 0x450]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [ebp - 0x440]
movq qword [ebp - 0x428], xmm0
push 0
push 0x4000100
push 2
push 0
push 0
cmp edi, 8
mov dword [ebp - 4], 3
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x450]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
je 0x4f0a72
push 0
push 0
push dword [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4f0a72
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4f0a72
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x460], eax
test eax, eax
je 0x4f0a72
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x454], ecx
test ecx, ecx
jne 0x4f0acc
lea ecx, [ebp - 0x438]
call fcn.00410b20
mov eax, dword [ebp - 0x454]
test eax, eax
je 0x4f0a98
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x454], 0
mov eax, dword [ebp - 0x460]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4f0ab5
push eax
call esi
mov dword [ebp - 0x460], 0
mov eax, dword [ebp - 0x464]
cmp eax, 0xffffffff
je 0x4f0bd3
push eax
call esi
jmp 0x4f0bd3
lea edi, [esi + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x47c], xmm0
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x478], edi
test edi, edi
je 0x4f0af9
mov eax, dword [edi]
push edi
call dword [eax]
mov ecx, dword [ebp - 0x454]
mov edx, dword [esi]
mov esi, edx
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4f0b2d
nop word [eax + eax]
cmp dword [eax + 0x10], ecx
jae 0x4f0b1a
mov eax, dword [eax + 8]
jmp 0x4f0b1e
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4f0b10
cmp esi, edx
je 0x4f0b2d
cmp ecx, dword [esi + 0x10]
jae 0x4f0b75
mov ecx, dword [ebp - 0x468]
lea eax, [ebp - 0x454]
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x469]
push eax
lea eax, [ebp - 0x470]
push eax
push 0x5a6a56
call fcn.004f0120
mov ecx, dword [ebp - 0x468]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x470]
push eax
call fcn.004f02b0
mov esi, dword [ebp - 0x470]
movups xmm0, xmmword [ebp - 0x464]
movups xmmword [esi + 0x14], xmm0
mov eax, dword [ebp - 0x454]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 5
test edi, edi
je 0x4f0b97
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x4f0bd3
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4f0bc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f0bf6
push edx
push ecx
call fcn.004b0a8e
add esp, 8
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret 4
call fcn.00533703
int3