Function at 0x1007f390
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd670
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10107f80]
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, dword [ebp + 8]
push esi
push str.isolate__p
mov dword [ebp - 0x68], esi
call fcn.10003c00
add esp, 8
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x10c826f0]
push dword [ebp - 0x48]
push str.context__p
call fcn.10003c00
add esp, 8
cmp dword [ebp - 0x48], 0
je 0x1007f6d8
xor edi, edi
lea eax, [ebp - 0x84]
push edi
push eax
mov dword [ebp - 0x54], edi
call fcn.10080050
add esp, 8
cmp byte [ebp - 0x6c], 0
mov dword [ebp - 4], edi
je 0x1007f480
cmp dword [ebp - 0x70], 7
lea eax, [ebp - 0x84]
push edi
cmova eax, dword [ebp - 0x84]
push 0x80
push 3
push edi
push 1
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x1007f46c
cmp esi, 0xffffffff
je 0x1007f46c
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1007f46c
cmp dword [ebp - 0x60], edi
jl 0x1007f46c
jg 0x1007f464
cmp dword [ebp - 0x64], 0xc800000
jbe 0x1007f46c
mov edi, 1
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 1
test esi, esi
je 0x1007f480
cmp esi, 0xffffffff
je 0x1007f480
push esi
call dword [0x100e252c]
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.100175c0
mov eax, dword [0x10c826e4]
push str.JSSOURCE
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x40]
push str.lunajspatch
push eax
call fcn.10003d80
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 4], 2
jbe 0x1007f4c5
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
push edi
push eax
push 0
push 0
call fcn.10080cc0
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 0x10
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp edi, 0x7fffffff
ja 0x1007f6f5
cmp edi, 0xf
ja 0x1007f51b
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
push 0
push eax
mov dword [ebp - 0x14], 0xf
call fcn.100ae560
add esp, 0xc
mov byte [ebp + edi - 0x28], 0
jmp 0x1007f566
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1007f52e
mov eax, 0x7fffffff
jmp 0x1007f538
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10002f60
mov ecx, dword [ebp - 0x50]
mov esi, eax
push edi
push 0
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
call fcn.100ae560
add esp, 0x14
mov byte [esi + edi], 0
push dword [ebp - 0x54]
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push dword [ebp - 0x58]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.1001efe0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
cmova eax, dword [ebp - 0x28]
push 1
push eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
call dword [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
add esp, 0x20
mov byte [ebp - 4], 2
cmp ecx, 0xf
jbe 0x1007f5d6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f5cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f6fa
push ecx
push edx
call fcn.100acd7c
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x1007f623
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f619
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007f6fa
push ecx
push edx
call fcn.100acd7c
add esp, 8
push dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
push str.v8string__p
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10003c00
mov eax, dword [ebp - 0x5c]
add esp, 8
test eax, eax
je 0x1007f6d8
cmp dword [0x10c826ec], 0
je 0x1007f68b
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
call dword [0x10c826f4]
push dword [ebp - 0x44]
push str.script__p
call fcn.10003c00
mov ecx, dword [ebp - 0x44]
add esp, 0x18
test ecx, ecx
je 0x1007f6d8
lea eax, [ebp - 0x4c]
push eax
call dword [0x10c826f8]
jmp 0x1007f6c8
cmp dword [0x10c826e8], 0
je 0x1007f6d8
push 0
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call dword [0x10c826f4]
push dword [ebp - 0x44]
push str.script__p
call fcn.10003c00
mov ecx, dword [ebp - 0x44]
add esp, 0x18
test ecx, ecx
je 0x1007f6d8
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
call dword [0x10c826f8]
push dword [ebp - 0x4c]
push str.useless__p
call fcn.10003c00
add esp, 8
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.100ad0a4
mov esp, ebp
pop ebp
ret 8
call fcn.10005eb0
call fcn.100b8f1f
int3