Function at 0x10078b00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d0018
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100fefb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
push str.isolate__p
call fcn.10004e30
add esp, 8
lea eax, [ebp - 0x48]
mov ecx, edi
push eax
call dword [0x10c7c21c]
push dword [ebp - 0x48]
push str.context__p
call fcn.10004e30
add esp, 8
cmp dword [ebp - 0x48], 0
je 0x10078da1
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.10079a10
add esp, 8
mov dword [ebp - 4], ebx
cmp byte [ebp - 0x5c], bl
je 0x10078bde
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
push ebx
cmovae eax, dword [ebp - 0x74]
push 0x80
push 3
push ebx
push 1
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x10078bca
cmp esi, 0xffffffff
je 0x10078bca
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10078bca
cmp dword [ebp - 0x54], ebx
jl 0x10078bca
jg 0x10078bc5
cmp dword [ebp - 0x58], 0xc800000
jbe 0x10078bca
mov ebx, 1
mov byte [ebp - 4], 1
test esi, esi
je 0x10078bde
cmp esi, 0xffffffff
je 0x10078bde
push esi
call dword [0x100d901c]
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.100178a0
mov eax, dword [0x10c7c210]
push str.JSSOURCE
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x40]
push str.lunajspatch
push eax
call fcn.10004fc0
add esp, 0xc
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x10078c1c
mov esi, dword [esi]
push 0
push ebx
push esi
push 0
push 0
call fcn.1007a730
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10015950
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push esi
push eax
call fcn.1001ea50
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x28]
push 1
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push edi
push eax
call dword [ebp - 0x54]
mov edx, dword [ebp - 0x14]
add esp, 0x20
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x10078c9f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10078c95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078dbf
push edx
push ecx
call fcn.100b98ff
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x10078cec
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10078ce2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078dc4
push edx
push ecx
call fcn.100b98ff
add esp, 8
push dword [ebp - 0x50]
mov dword [ebp - 0x30], 0
push str.v8string__p
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10004e30
mov eax, dword [ebp - 0x50]
add esp, 8
test eax, eax
je 0x10078da1
cmp dword [0x10c7c218], 0
je 0x10078d54
push 0
push 0
push eax
lea eax, [ebp - 0x44]
push eax
call dword [0x10c7c220]
push dword [ebp - 0x44]
push str.script__p
call fcn.10004e30
mov ecx, dword [ebp - 0x44]
add esp, 0x18
test ecx, ecx
je 0x10078da1
lea eax, [ebp - 0x4c]
push eax
call dword [0x10c7c224]
jmp 0x10078d91
cmp dword [0x10c7c214], 0
je 0x10078da1
push 0
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call dword [0x10c7c220]
push dword [ebp - 0x44]
push str.script__p
call fcn.10004e30
mov ecx, dword [ebp - 0x44]
add esp, 0x18
test ecx, ecx
je 0x10078da1
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
call dword [0x10c7c224]
push dword [ebp - 0x4c]
push str.useless__p
call fcn.10004e30
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b990d
mov esp, ebp
pop ebp
ret 8
call fcn.100bb050
call fcn.100bb050
int3