Function at 0x4a4d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
xor eax, eax
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], vtable.hx::StringAlloc_100_.0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
call fcn.0045fbc0
push 0x4dcd78
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp + 0xc]
call fcn.0046a070
push eax
call fcn.004b083c
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x4a4da3
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov edx, esp
push str.file_contents
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
call fcn.004a54b0
add esp, 0xc
push 2
push 0
push edi
call fcn.004b61f3
push edi
call fcn.004b6846
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x4a4ed9
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov edx, esp
push str.file_ftell
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
call fcn.004a54b0
add esp, 0xc
push 0
push 0
push edi
call fcn.004b61f3
add esp, 0xc
test esi, esi
je 0x4a4e0a
lea eax, [ebp - 0x11]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004a4b70
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
test esi, esi
jle 0x4a4e5c
push edi
push esi
add eax, ebx
push 1
push eax
call fcn.004b13c8
mov edi, eax
add esp, 0x10
test edi, edi
jg 0x4a4e4b
push dword [ebp - 0x18]
call fcn.004b11b2
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, esp
push str.file_contents
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
call fcn.004a54b0
add esp, 0xc
mov eax, dword [ebp - 0x10]
sub esi, edi
add eax, edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
test esi, esi
jg 0x4a4e13
push edi
call fcn.004b11b2
call fcn.0045fcd0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
sub eax, ebx
push eax
push ebx
push esi
call fcn.004682d0
add esp, 0x10
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 4
mov dword [ebp - 0xa0], vtable.hx::StringAlloc_100_.0
test eax, eax
je 0x4a4e98
push eax
call fcn.004ad980
add esp, 4
mov dword [ebp - 0xa0], vtable.hx::IStringAlloc.0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4a4f3a
mov ecx, dword [ebp - 0x20]
mov eax, ebx
sub ecx, ebx
mov dword [ebp - 4], 5
cmp ecx, 0x1000
jb 0x4a4f30
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4f4d
jmp 0x4a4f30
jne 0x4a4ddd
push edi
call fcn.004b11b2
add esp, 4
call fcn.0045fcd0
mov esi, dword [ebp + 8]
mov eax, dword [0x5397c4]
mov dword [esi], eax
mov eax, dword [0x5397c8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
mov dword [ebp - 0xa0], vtable.hx::StringAlloc_100_.0
test eax, eax
je 0x4a4f3a
push eax
call fcn.004ad980
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push ebx
call fcn.004a60e4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ac9d4
int3