Function at 0x4953a0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e5f35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd20
push ebx
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x531]
mov byte [esp + 0x530], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xd44]
xor ebp, ebp
push str.TEMPPATH
push eax
mov dword [esp + 0xd40], ebp
mov dword [esp + 0x2c], 1
call fcn.004b0b80
add esp, 8
mov ebx, 3
test eax, eax
jne 0x495520
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esp + 0xd48]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x51347c]
mov ecx, edx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
push ebp
push 0x80
push ebx
push ebp
push ebx
lea ecx, [esp + 0x3c]
push SysReAllocString
push ecx
mov byte [esp + 0xd54], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4954e9
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x12c]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0
push edx
lea eax, [esp + 0x134]
push 0x400
push eax
push esi
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4954de
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004d4d69
jmp 0x49549b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x4954ed
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x530]
push ecx
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
push eax
call fcn.004d4dbd
push eax
call fcn.004952e0
add esp, 8
mov byte [esp + 0xd38], 0
lea ecx, [esp + 0x1c]
jmp 0x49565b
mov edx, dword [esp + 0xd44]
push str.COOKIE
push edx
call fcn.004b0b80
add esp, 8
test eax, eax
jne 0x495660
mov eax, dword [0x51347c]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0xd4c]
lea ecx, [esp + 0x1c]
push ecx
push 0x518908
push edx
mov byte [esp + 0xd44], 2
call fcn.004dcdaa
mov eax, dword [esp + 0xd5c]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
call fcn.004d369c
mov esi, eax
cmp esi, 0xffffffff
je 0x49564f
push esi
push 0x50b5e4
lea ecx, [esp + 0x24]
call fcn.004d36aa
mov ecx, dword [0x51347c]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xd50]
cmp eax, 0xffffffff
mov byte [esp + 0xd38], bl
je 0x4955eb
mov ecx, dword [edx - 8]
sub eax, ecx
sub eax, esi
dec eax
push eax
lea eax, [ecx + esi + 1]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004d34f0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd3c], 4
call fcn.004d4ac6
mov byte [esp + 0xd38], bl
lea ecx, [esp + 0x10]
jmp 0x49561e
mov eax, dword [edx - 8]
lea ecx, [esp + 0x10]
lea eax, [eax + esi + 1]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004d34cd
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd3c], 5
call fcn.004d4ac6
mov byte [esp + 0xd38], bl
lea ecx, [esp + 0x10]
call fcn.004d498d
lea edx, [esp + 0x530]
lea ecx, [esp + 0x18]
push edx
push ebp
call fcn.004d4dbd
push eax
call fcn.004952e0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0xd38], 2
call fcn.004d498d
mov byte [esp + 0xd38], 0
lea ecx, [esp + 0x1c]
call fcn.004d498d
push 0x40
call fcn.004d46ce
add esp, 4
cmp eax, ebp
je 0x4956da
mov ecx, dword [0x51347c]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x51347c]
mov dword [eax + 4], edx
mov ecx, dword [0x51347c]
mov dword [eax + 8], ecx
mov edx, dword [0x51347c]
mov dword [eax + 0xc], edx
mov ecx, dword [0x51347c]
mov dword [eax + 0x10], ecx
mov edx, dword [0x51347c]
mov dword [eax + 0x14], edx
mov ecx, dword [0x51347c]
mov dword [eax + 0x18], ecx
mov edx, dword [0x51347c]
mov dword [eax + 0x1c], edx
mov ecx, dword [0x51347c]
mov dword [eax + 0x20], ecx
mov edx, dword [0x51347c]
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ebp
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x30], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
jmp 0x4956dc
xor esi, esi
lea eax, [esp + 0x530]
lea ecx, [esp + 0x14]
push eax
call fcn.004d49fb
push 0x5122ec
lea ecx, [esp + 0x18]
mov byte [esp + 0xd3c], 6
call fcn.004d369c
push 0x512200
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004d369c
cmp edi, ebp
jl 0x495788
cmp eax, ebp
jl 0x495750
sub eax, edi
add edi, 3
sub eax, ebx
lea ecx, [esp + 0x10]
push eax
push edi
push ecx
lea ecx, [esp + 0x20]
call fcn.004d34f0
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 7
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495783
cmp eax, 0xffffffff
jne 0x495788
add edi, 3
lea edx, [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 8
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VP
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x49581c
test eax, eax
jl 0x4957e6
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d34f0
push eax
lea ecx, [esi + 4]
mov byte [esp + 0xd3c], 9
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495817
cmp eax, 0xffffffff
jne 0x49581c
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 4]
mov byte [esp + 0xd3c], 0xa
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
mov edx, dword [esp + 0xd54]
push str.xmp.exe
push edx
call fcn.004b0b80
add esp, 8
test eax, eax
jne 0x495875
mov eax, dword [esi + 4]
push 0x518908
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x495866
mov eax, dword [esi + 4]
push 0x5121ac
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
je 0x495866
push str.xmp_online.exe
jmp 0x49586b
push str.xmp_local.exe
mov ecx, 0x518b18
call fcn.004d4b16
push str.VC
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495909
test eax, eax
jl 0x4958d3
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d34f0
push eax
lea ecx, [esi + 8]
mov byte [esp + 0xd3c], 0xb
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495904
cmp eax, 0xffffffff
jne 0x495909
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 8]
mov byte [esp + 0xd3c], 0xc
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VJ
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x49599d
test eax, eax
jl 0x495967
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d34f0
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xd3c], 0xd
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495998
cmp eax, 0xffffffff
jne 0x49599d
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xd3c], 0xe
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VS
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495a31
test eax, eax
jl 0x4959fb
sub eax, edi
lea ecx, [esp + 0x10]
sub eax, 4
push eax
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.004d34f0
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xd3c], 0xf
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495a2c
cmp eax, 0xffffffff
jne 0x495a31
lea edx, [esp + 0x10]
push ebp
push edx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xd3c], 0x10
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VD
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495ac5
test eax, eax
jl 0x495a8f
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d34f0
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xd3c], 0x11
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495ac0
cmp eax, 0xffffffff
jne 0x495ac5
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xd3c], 0x12
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VT
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495b59
test eax, eax
jl 0x495b23
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d34f0
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xd3c], 0x13
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495b54
cmp eax, 0xffffffff
jne 0x495b59
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xd3c], 0x14
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VU
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495bed
test eax, eax
jl 0x495bb7
sub eax, edi
lea ecx, [esp + 0x10]
sub eax, 4
push eax
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.004d34f0
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0xd3c], 0x15
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495be8
cmp eax, 0xffffffff
jne 0x495bed
lea edx, [esp + 0x10]
push ebp
push edx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0xd3c], 0x16
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VM
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495c81
test eax, eax
jl 0x495c4b
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d34f0
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0xd3c], 0x17
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495c7c
cmp eax, 0xffffffff
jne 0x495c81
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0xd3c], 0x18
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
push str.VV
lea ecx, [esp + 0x18]
call fcn.004d369c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x512200
call fcn.004d36aa
test edi, edi
jl 0x495d15
test eax, eax
jl 0x495cdf
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d34f0
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0xd3c], 0x19
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495d10
cmp eax, 0xffffffff
jne 0x495d15
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d34cd
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0xd3c], 0x1a
call fcn.004d4ac6
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d498d
lea ecx, [esi + 8]
call fcn.004d4e8f
mov ecx, esi
call fcn.004d4e8f
lea edi, [esi + 4]
mov ecx, edi
call fcn.004d4e8f
lea ecx, [esi + 0x24]
call fcn.004d4e8f
lea ebp, [esi + 0x10]
mov ecx, ebp
call fcn.004d4e8f
lea ecx, [esi + 0xc]
call fcn.004d4e8f
mov eax, dword [edi]
push 0x50b4b0
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495da2
mov eax, dword [ebp]
push 0x5122a0
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495da2
push esi
lea ecx, [esp + 0x14]
push 0x512294
push ecx
call fcn.004d4c96
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 0x1b
call fcn.004d4ac6
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], 6
call fcn.004d498d
mov eax, dword [edi]
push 0x50b4b0
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495dfc
mov eax, dword [ebp]
push 0x512290
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495dfc
push esi
lea edx, [esp + 0x14]
push 0x512284
push edx
call fcn.004d4c96
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 0x1c
call fcn.004d4ac6
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], 6
call fcn.004d498d
push 1
push 2
lea ecx, [esp + 0x20]
call fcn.004d32e5
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push ecx
push eax
call fcn.004aebf6
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.004d498d
test bl, bl
je 0x495e37
push 0x5121a0
mov ecx, esi
call fcn.004d4b16
mov eax, dword [esi]
push 0x518908
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495f14
mov eax, dword [edi]
push 0x518908
push eax
call fcn.004aebf6
add esp, 8
test eax, eax
jne 0x495f14
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x495e9c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x495e81
push str.NO_FILE
jmp 0x495e86
push str.NO_CONTENT
mov ecx, esi
call fcn.004d4b16
push str.NO_CONTENT
call fcn.004180b0
add esp, 4
jmp 0x495f08
mov eax, dword [0x51347c]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push 0x14
mov bl, 0x1d
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd40], bl
call fcn.004d3602
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push str.NULL_s
push eax
mov byte [esp + 0xd44], 0x1e
call fcn.004d3a22
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], bl
call fcn.004d498d
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004d4ac6
lea ecx, [esp + 0x18]
mov byte [esp + 0xd38], 6
call fcn.004d498d
push 0x5122a0
mov ecx, ebp
call fcn.004d4b16
mov edx, dword [0x51347c]
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp]
mov edx, dword [edi]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0xd60]
push eax
push ecx
push edx
lea eax, [esp + 0x38]
push str.Video_ReadData:__s___s___s___s___s___s_
push eax
mov byte [esp + 0xd58], 0x1f
call fcn.004d3a22
add esp, 0x20
lea ecx, [esp + 0x20]
mov byte [esp + 0xd38], 6
call fcn.004d498d
lea ecx, [esp + 0x14]
mov byte [esp + 0xd38], 0
call fcn.004d498d
lea ecx, [esp + 0xd54]
mov dword [esp + 0xd38], 0x24
call fcn.004d498d
lea ecx, [esp + 0xd50]
mov byte [esp + 0xd38], 0x23
call fcn.004d498d
lea ecx, [esp + 0xd4c]
mov byte [esp + 0xd38], 0x22
call fcn.004d498d
lea ecx, [esp + 0xd48]
mov byte [esp + 0xd38], 0x21
call fcn.004d498d
lea ecx, [esp + 0xd44]
mov byte [esp + 0xd38], 0x20
call fcn.004d498d
lea ecx, [esp + 0xd40]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004d498d
mov ecx, dword [esp + 0xd30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd2c
ret 0x18