Function at 0x4b2f3a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4b313b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push 0x48
test byte [eax + ecx], 0x80
lea esi, [eax + ecx]
jne 0x4b3052
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4b2f8f
add dword [ebp + 0x10], 0x6a
inc dword [ebp - 8]
jmp 0x4b3129
sub dword [ebp + 0x10], 0xf
push str.rb
push str.hzk24t
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4b3157
movsx eax, byte [esi]
add eax, 0x9b
push 0
lea eax, [eax + eax*8]
shl eax, 3
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push 0x48
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
and dword [ebp - 0x10], 0
mov esi, ebx
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push 1
pop ebx
lea eax, [eax + ecx*8]
movsx edx, byte [esi + edi]
lea ecx, [ebx - 1]
shl edx, cl
test dl, 0x80
je 0x4b3022
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
add edx, ecx
inc dword [ebp - 0xc]
mov dword [eax + 4], edx
add eax, 8
cmp dword [ebp - 0xc], 0x2710
jge 0x4b3157
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x4b2ff1
inc edi
cmp edi, 3
jl 0x4b2fe5
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x4b2fe3
inc dword [ebp - 8]
sub dword [ebp + 0x10], 0xf
jmp 0x4b3129
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [esp], str.rb
push str.hzk24k
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4b3157
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 0
mov al, byte [eax + ecx + 1]
mov cl, byte [esi]
add cl, 0x51
add al, 0x60
movzx ecx, cl
imul ecx, ecx, 0x5e
movzx eax, al
lea eax, [eax + ecx - 0x5f]
lea eax, [eax + eax*8]
shl eax, 3
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push 0x48
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
and dword [ebp - 0x10], 0
mov esi, ebx
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push 1
pop ebx
lea eax, [eax + ecx*8]
movzx edx, byte [esi + edi]
lea ecx, [ebx - 1]
shl edx, cl
test dl, 0x80
je 0x4b30fd
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
add edx, ecx
inc dword [ebp - 0xc]
mov dword [eax + 4], edx
add eax, 8
cmp dword [ebp - 0xc], 0x2710
jge 0x4b3157
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x4b30d0
inc edi
cmp edi, 3
jl 0x4b30c4
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x4b30c2
add dword [ebp - 8], 2
add dword [ebp + 0x10], 0xa
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
cmp dword [ebp - 8], eax
pop ecx
jne 0x4b2f5c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push 1
and dword [eax + ecx*8], 0
and dword [eax + ecx*8 + 4], 0
lea eax, [eax + ecx*8]
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4b3150