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

Disassembly:
push 0xffffffffffffffff
push 0x4e5da5
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.004b0a20
add esp, 8
mov ebx, 3
test eax, eax
jne 0x4953c0
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 [0x513458]
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 SysReAllocStringLen
push ecx
mov byte [esp + 0xd54], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x495389
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 0x49537e
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004d4c09
jmp 0x49533b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
jmp 0x49538d
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.004d4c5d
push eax
call fcn.00495180
add esp, 8
mov byte [esp + 0xd38], 0
lea ecx, [esp + 0x1c]
jmp 0x4954fb
mov edx, dword [esp + 0xd44]
push str.COOKIE
push edx
call fcn.004b0a20
add esp, 8
test eax, eax
jne 0x495500
mov eax, dword [0x513458]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0xd4c]
lea ecx, [esp + 0x1c]
push ecx
push 0x5188e8
push edx
mov byte [esp + 0xd44], 2
call fcn.004dcc4a
mov eax, dword [esp + 0xd5c]
add esp, 0xc
lea ecx, [esp + 0x1c]
push eax
call fcn.004d353c
mov esi, eax
cmp esi, 0xffffffff
je 0x4954ef
push esi
push 0x50b60c
lea ecx, [esp + 0x24]
call fcn.004d354a
mov ecx, dword [0x513458]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0xd50]
cmp eax, 0xffffffff
mov byte [esp + 0xd38], bl
je 0x49548b
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.004d3390
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd3c], 4
call fcn.004d4966
mov byte [esp + 0xd38], bl
lea ecx, [esp + 0x10]
jmp 0x4954be
mov eax, dword [edx - 8]
lea ecx, [esp + 0x10]
lea eax, [eax + esi + 1]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004d336d
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd3c], 5
call fcn.004d4966
mov byte [esp + 0xd38], bl
lea ecx, [esp + 0x10]
call fcn.004d482d
lea edx, [esp + 0x530]
lea ecx, [esp + 0x18]
push edx
push ebp
call fcn.004d4c5d
push eax
call fcn.00495180
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0xd38], 2
call fcn.004d482d
mov byte [esp + 0xd38], 0
lea ecx, [esp + 0x1c]
call fcn.004d482d
push 0x40
call fcn.004d456e
add esp, 4
cmp eax, ebp
je 0x49557a
mov ecx, dword [0x513458]
mov esi, eax
mov dword [eax], ecx
mov edx, dword [0x513458]
mov dword [eax + 4], edx
mov ecx, dword [0x513458]
mov dword [eax + 8], ecx
mov edx, dword [0x513458]
mov dword [eax + 0xc], edx
mov ecx, dword [0x513458]
mov dword [eax + 0x10], ecx
mov edx, dword [0x513458]
mov dword [eax + 0x14], edx
mov ecx, dword [0x513458]
mov dword [eax + 0x18], ecx
mov edx, dword [0x513458]
mov dword [eax + 0x1c], edx
mov ecx, dword [0x513458]
mov dword [eax + 0x20], ecx
mov edx, dword [0x513458]
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 0x49557c
xor esi, esi
lea eax, [esp + 0x530]
lea ecx, [esp + 0x14]
push eax
call fcn.004d489b
push 0x5122c8
lea ecx, [esp + 0x18]
mov byte [esp + 0xd3c], 6
call fcn.004d353c
push 0x5121dc
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004d353c
cmp edi, ebp
jl 0x495628
cmp eax, ebp
jl 0x4955f0
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.004d3390
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 7
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495623
cmp eax, 0xffffffff
jne 0x495628
add edi, 3
lea edx, [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 8
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VP
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x4956bc
test eax, eax
jl 0x495686
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d3390
push eax
lea ecx, [esi + 4]
mov byte [esp + 0xd3c], 9
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x4956b7
cmp eax, 0xffffffff
jne 0x4956bc
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 4]
mov byte [esp + 0xd3c], 0xa
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
mov edx, dword [esp + 0xd54]
push str.xmp.exe
push edx
call fcn.004b0a20
add esp, 8
test eax, eax
jne 0x495715
mov eax, dword [esi + 4]
push 0x5188e8
push eax
call fcn.004aea96
add esp, 8
test eax, eax
je 0x495706
mov eax, dword [esi + 4]
push 0x512188
push eax
call fcn.004aea96
add esp, 8
test eax, eax
je 0x495706
push str.xmp_online.exe
jmp 0x49570b
push str.xmp_local.exe
mov ecx, 0x518af8
call fcn.004d49b6
push str.VC
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x4957a9
test eax, eax
jl 0x495773
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d3390
push eax
lea ecx, [esi + 8]
mov byte [esp + 0xd3c], 0xb
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x4957a4
cmp eax, 0xffffffff
jne 0x4957a9
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 8]
mov byte [esp + 0xd3c], 0xc
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VJ
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x49583d
test eax, eax
jl 0x495807
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d3390
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xd3c], 0xd
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495838
cmp eax, 0xffffffff
jne 0x49583d
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0xc]
mov byte [esp + 0xd3c], 0xe
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VS
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x4958d1
test eax, eax
jl 0x49589b
sub eax, edi
lea ecx, [esp + 0x10]
sub eax, 4
push eax
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.004d3390
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xd3c], 0xf
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x4958cc
cmp eax, 0xffffffff
jne 0x4958d1
lea edx, [esp + 0x10]
push ebp
push edx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0xd3c], 0x10
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VD
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x495965
test eax, eax
jl 0x49592f
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d3390
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xd3c], 0x11
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495960
cmp eax, 0xffffffff
jne 0x495965
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0xd3c], 0x12
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VT
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x4959f9
test eax, eax
jl 0x4959c3
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d3390
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xd3c], 0x13
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x4959f4
cmp eax, 0xffffffff
jne 0x4959f9
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0xd3c], 0x14
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VU
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x495a8d
test eax, eax
jl 0x495a57
sub eax, edi
lea ecx, [esp + 0x10]
sub eax, 4
push eax
push ebp
push ecx
lea ecx, [esp + 0x20]
call fcn.004d3390
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0xd3c], 0x15
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495a88
cmp eax, 0xffffffff
jne 0x495a8d
lea edx, [esp + 0x10]
push ebp
push edx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0xd3c], 0x16
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VM
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x495b21
test eax, eax
jl 0x495aeb
sub eax, edi
lea ecx, [esp + 0x14]
sub eax, 4
push eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004d3390
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0xd3c], 0x17
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495b1c
cmp eax, 0xffffffff
jne 0x495b21
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0xd3c], 0x18
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
push str.VV
lea ecx, [esp + 0x18]
call fcn.004d353c
mov edi, eax
lea ecx, [esp + 0x14]
lea ebp, [edi + 4]
push ebp
push 0x5121dc
call fcn.004d354a
test edi, edi
jl 0x495bb5
test eax, eax
jl 0x495b7f
sub eax, edi
lea edx, [esp + 0x10]
sub eax, 4
lea ecx, [esp + 0x14]
push eax
push ebp
push edx
call fcn.004d3390
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0xd3c], 0x19
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
jmp 0x495bb0
cmp eax, 0xffffffff
jne 0x495bb5
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.004d336d
push eax
lea ecx, [esi + 0x24]
mov byte [esp + 0xd3c], 0x1a
call fcn.004d4966
mov byte [esp + 0xd38], 6
lea ecx, [esp + 0x10]
call fcn.004d482d
lea ecx, [esi + 8]
call fcn.004d4d2f
mov ecx, esi
call fcn.004d4d2f
lea edi, [esi + 4]
mov ecx, edi
call fcn.004d4d2f
lea ecx, [esi + 0x24]
call fcn.004d4d2f
lea ebp, [esi + 0x10]
mov ecx, ebp
call fcn.004d4d2f
lea ecx, [esi + 0xc]
call fcn.004d4d2f
mov eax, dword [edi]
push 0x50b4d8
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495c42
mov eax, dword [ebp]
push 0x51227c
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495c42
push esi
lea ecx, [esp + 0x14]
push 0x512270
push ecx
call fcn.004d4b36
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 0x1b
call fcn.004d4966
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], 6
call fcn.004d482d
mov eax, dword [edi]
push 0x50b4d8
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495c9c
mov eax, dword [ebp]
push 0x51226c
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495c9c
push esi
lea edx, [esp + 0x14]
push 0x512260
push edx
call fcn.004d4b36
push eax
mov ecx, esi
mov byte [esp + 0xd3c], 0x1c
call fcn.004d4966
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], 6
call fcn.004d482d
push 1
push 2
lea ecx, [esp + 0x20]
call fcn.004d3185
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push ecx
push eax
call fcn.004aea96
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call fcn.004d482d
test bl, bl
je 0x495cd7
push 0x51217c
mov ecx, esi
call fcn.004d49b6
mov eax, dword [esi]
push 0x5188e8
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495db4
mov eax, dword [edi]
push 0x5188e8
push eax
call fcn.004aea96
add esp, 8
test eax, eax
jne 0x495db4
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
jne 0x495d3c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x495d21
push str.NO_FILE
jmp 0x495d26
push str.NO_CONTENT
mov ecx, esi
call fcn.004d49b6
push str.NO_CONTENT
call fcn.00418160
add esp, 4
jmp 0x495da8
mov eax, dword [0x513458]
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.004d34a2
mov edx, dword [eax]
lea eax, [esp + 0x18]
push edx
push str.NULL_s
push eax
mov byte [esp + 0xd44], 0x1e
call fcn.004d38c2
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xd38], bl
call fcn.004d482d
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004d4966
lea ecx, [esp + 0x18]
mov byte [esp + 0xd38], 6
call fcn.004d482d
push 0x51227c
mov ecx, ebp
call fcn.004d49b6
mov edx, dword [0x513458]
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.004d38c2
add esp, 0x20
lea ecx, [esp + 0x20]
mov byte [esp + 0xd38], 6
call fcn.004d482d
lea ecx, [esp + 0x14]
mov byte [esp + 0xd38], 0
call fcn.004d482d
lea ecx, [esp + 0xd54]
mov dword [esp + 0xd38], 0x24
call fcn.004d482d
lea ecx, [esp + 0xd50]
mov byte [esp + 0xd38], 0x23
call fcn.004d482d
lea ecx, [esp + 0xd4c]
mov byte [esp + 0xd38], 0x22
call fcn.004d482d
lea ecx, [esp + 0xd48]
mov byte [esp + 0xd38], 0x21
call fcn.004d482d
lea ecx, [esp + 0xd44]
mov byte [esp + 0xd38], 0x20
call fcn.004d482d
lea ecx, [esp + 0xd40]
mov dword [esp + 0xd38], 0xffffffff
call fcn.004d482d
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