Function at 0x4b07c0
Capabilities:
Read file on windows

Disassembly:
mov al, byte [0x532784]
sub esp, 8
test al, al
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x4b07e4
push 0x100000
call fcn.004b0760
test al, al
je 0x4b0ac8
mov ebp, dword [esp + 0x20]
xor ebx, ebx
mov eax, ebp
sub eax, ebx
je 0x4b08b7
dec eax
je 0x4b081f
mov eax, dword [0x532678]
cmp eax, ebx
je 0x4b0ac8
push ebp
push str.AFilePackage::Open____Unknown_open_mode___d__
push eax
call fcn.004b27d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x1c]
push 0x526698
push edi
mov byte [esi + 1], 0
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [esi + 0x118], eax
jne 0x4b0868
mov eax, dword [0x532678]
cmp eax, ebx
je 0x4b0ac8
push edi
push str.AFilePackage::Open____Can_not_create_file___s_
push eax
call fcn.004b27d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
lea edx, [esi + 4]
cmpsb byte [esi], byte es:[edi]
inc edx
add byte [eax], al
add byte [ebx], dh
ror byte [ebx + 0x68abf3fa], 0
add dword [eax], eax
add byte [ebp + 0x8680c46], cl
push dx
add byte [eax - 0x77], dl
pop esi
or bh, al
add al, byte [ebx]
add byte [ecx], al
add bh, bh
adc eax, sym.imp.MSVCRT.dll_strncpy
add esp, 0xc
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x10c], ebp
mov byte [esi], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push 0x350404
push edi
jle 0x4b090f
add dword [eax], eax
call ebp
add esp, 8
cmp eax, ebx
mov dword [esi + 0x118], eax
jne 0x4b091b
push 0x514f80
push edi
call ebp
add esp, 8
cmp esi, dword [edi + 0x1188689]
add byte [eax], al
jne 0x4b0902
mov eax, dword [0x532678]
cmp eax, ebx
je 0x4b0ac8
push edi
push str.AFilePackage::Open____Can_not_open_file___s_
push eax
call fcn.004b27d0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 0x118]
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xfffffffffffffffc
push ecx
call ebp
mov edx, dword [esi + 0x118]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
lea eax, [esp + 0x24]
push 4
push eax
call edi
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 0x10003
jne 0x4b0ab1
mov ecx, dword [esi + 0x118]
push 2
push 0xfffffffffffffff8
push ecx
call ebp
mov edx, dword [esi + 0x118]
lea ebx, [esi + 0x110]
push edx
push 1
push 4
push ebx
call edi
mov eax, dword [esi + 0x118]
push 2
push 0xfffffef0
push eax
call ebp
mov ecx, dword [esi + 0x118]
lea edx, [esi + 4]
push ecx
push 1
push 0x108
push edx
call edi
mov eax, dword [ebx]
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 4
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x3c
mov dword [esi + 0x114], eax
test eax, eax
jne 0x4b09d4
mov eax, dword [0x532678]
test eax, eax
je 0x4b0ac8
push str.AFilePackage::Open____Not_enough_memory_
jmp 0x1130abf
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x118]
push 0
push edx
push eax
call ebp
mov eax, dword [ebx]
xor ebp, ebp
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x1c], ebp
jle 0x4b0a11
mov ecx, dword [esi + 0x118]
lea edx, [esp + 0x14]
push ecx
push 1
push 4
push edx
call edi
mov eax, dword [esi + 0x118]
mov edx, dword [esi + 0x114]
mov ecx, dword [esp + 0x24]
push eax
add dword [eax], eax
add byte [ebx + 0x5024244c], cl
push 1
add edx, ebp
push ecx
push edx
call edi
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
push eax
push 1
lea edx, [ecx + ebp + 0x104]
push 4
push edx
call edi
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
push eax
push 1
lea edx, [ecx + ebp + 0x108]
push 4
push edx
call edi
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x114]
add esp, 0x40
lea edx, [ecx + ebp + 0x10c]
push eax
push 1
push 4
push edx
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx]
add esp, 0x10
inc eax
add ebp, 0x110
cmp eax, ecx
mov dword [esp + 0x658c0f1c], ecx
invalid
mov eax, dword [0x532678]
cmp eax, ebx
je 0x4b0ac8
push str.AFilePackage::Open____Incorrect_version_
push eax
call fcn.004b27d0
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8