Function at 0x49c4b6
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 0x49c6b7
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 0x49c5ce
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x49c50b
add dword [ebp + 0x10], 0x6a
inc dword [ebp - 8]
jmp 0x49c6a5
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 0x49c6d3
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 0x49c59e
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 0x49c6d3
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x49c56d
inc edi
cmp edi, 3
jl 0x49c561
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x49c55f
inc dword [ebp - 8]
sub dword [ebp + 0x10], 0xf
jmp 0x49c6a5
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 0x49c6d3
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 0x49c679
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 0x49c6d3
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x49c64c
inc edi
cmp edi, 3
jl 0x49c640
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x49c63e
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 0x49c4d8
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 0x49c6cc