Function at 0x49b747
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fd7c4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
cmp ebx, esi
jne 0x49b785
xor eax, eax
jmp 0x49bbd6
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
cmp eax, 7
jne 0x49b7b1
cmp dword [ebp + 0x10], ecx
jb 0x49bbd2
mov ecx, dword [ebx + 4]
call fcn.0040c5b0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x49bbd2
cmp eax, 8
jne 0x49b7da
cmp dword [edi + 4], esi
je 0x49bbd2
mov ebx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, ebx
call fcn.0040c5b0
mov ecx, dword [edi + 4]
push eax
call dword [esi + 0x34]
jmp 0x49bbd2
cmp eax, 2
jne 0x49b85b
cmp dword [ebp + 0x10], ecx
jb 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
cmp eax, esi
je 0x49b807
mov dword [eax], esi
jmp 0x49b809
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0040ed50
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
cmp eax, esi
je 0x49b8cb
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.004310b0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x48], esi
mov edi, dword [edi + 4]
mov eax, dword [eax]
mov esi, dword [ecx + 4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x3c]
cdq
push edx
push eax
call fcn.0040c130
lea eax, [esp + 0x14]
call fcn.0042afc0
jmp 0x49bbd2
cmp eax, 3
jne 0x49b8d9
cmp dword [ebp + 0x10], ecx
jb 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
cmp eax, esi
je 0x49b888
mov dword [eax], esi
jmp 0x49b88a
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0040ed50
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
cmp eax, esi
je 0x49b8cb
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.004310b0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x48], 1
mov edi, dword [edi + 4]
mov eax, dword [eax]
mov esi, dword [ecx + 4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x10]
jmp 0x49b845
push esi
push esi
mov esi, eax
call fcn.0040c130
jmp 0x49bbd2
cmp eax, 4
jne 0x49b90d
mov eax, dword [ebp + 0x10]
cmp eax, esi
jbe 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
mov edi, dword [edi + 4]
mov edx, dword [edi]
push esi
push esi
push dword [ebp + 0x14]
dec eax
push eax
lea eax, [ebx + 0xc]
push eax
push ebx
mov ecx, edi
call dword [edx + 0x40]
jmp 0x49bbd2
cmp eax, 6
jne 0x49b9e4
cmp dword [ebp + 0x10], esi
jbe 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
mov ebx, dword [ebx + 4]
cmp dword [ebx], ecx
jne 0x49b934
mov ebx, dword [ebx + 8]
jmp 0x49b936
xor ebx, ebx
push esi
push 0x80
push 4
push esi
push 5
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x49bbd2
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49b9d5
cmp dword [esp + 0x20], esi
jl 0x49b9d5
mov eax, dword [esp + 0x1c]
jg 0x49b97a
cmp eax, esi
jbe 0x49b9d5
inc eax
push 0x54cfe0
push eax
call fcn.004cc21d
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x49b9d5
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push ebx
call fcn.004d7710
add esp, 0xc
push esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x20], esi
push ebx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b9ce
mov eax, dword [esp + 0x14]
mov byte [eax + ebx], 0
mov edi, dword [edi + 4]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x10]
push ebx
call fcn.004cc1ec
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49bbd2
cmp eax, 0xb
jne 0x49bac9
cmp dword [ebp + 0x10], 2
jb 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
mov ebx, dword [ebx + 0x10]
cmp dword [ebx], 5
jne 0x49bbd2
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x49bbd2
mov eax, dword [ebx]
push str.getter
mov ecx, ebx
call dword [eax + 0x38]
lea esi, [esp + 0x30]
call fcn.0040ea10
mov dword [esp + 0x48], 2
mov eax, dword [ebx]
push str.setter
mov ecx, ebx
call dword [eax + 0x38]
lea esi, [esp + 0x1c]
call fcn.0040ea10
mov ecx, esi
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 3
mov edi, dword [edi + 4]
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call dword [eax + 0x4c]
push 0x54cfe0
push 0x10
mov esi, eax
call fcn.004cba2a
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x48], 4
test ecx, ecx
je 0x49ba8b
mov eax, esi
call fcn.0040c000
jmp 0x49ba8d
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x4c], 3
call fcn.0040ed50
mov byte [esp + 0x48], 2
mov esi, vtable.os::script_shared_ptr_class__variant__.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.0040ea60
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
call fcn.0040ea60
jmp 0x49bbd2
cmp eax, 0xc
jne 0x49bafb
cmp dword [ebp + 0x10], esi
jbe 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
mov ebx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, ebx
call fcn.0040c5b0
mov ecx, dword [edi + 4]
push eax
call dword [esi + 0x50]
jmp 0x49bbd2
cmp eax, 0xd
jne 0x49bb2d
cmp dword [ebp + 0x10], esi
jbe 0x49bbd2
cmp dword [edi + 4], esi
je 0x49bbd2
mov ebx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, ebx
call fcn.0040c5b0
mov ecx, dword [edi + 4]
push eax
call dword [esi + 0x54]
jmp 0x49bbd2
cmp eax, 0xe
jne 0x49bbbf
cmp dword [ebp + 0x10], esi
jbe 0x49bbd2
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0046405d
pop ecx
pop ecx
mov dword [esp + 0x48], 5
mov eax, dword [esp + 0x10]
push 0x54cfe0
push 0x10
cmp dword [eax - 0xc], esi
je 0x49bb7e
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x48], 6
cmp eax, esi
je 0x49bba4
push dword [esp + 0x10]
jmp 0x49bb93
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov byte [esp + 0x48], 7
cmp eax, esi
je 0x49bba4
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x14]
call fcn.0041a750
jmp 0x49bba6
xor eax, eax
mov ecx, dword [ebp + 0x14]
push eax
mov byte [esp + 0x4c], 5
call fcn.0040ed50
lea ecx, [esp + 0x10]
call fcn.004087f0
jmp 0x49bbd2
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push ebx
push eax
call fcn.0046626b
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10