Function at 0x481959
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 0x481b5a
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 0x481a71
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4819ae
add dword [ebp + 0x10], 0x6a
inc dword [ebp - 8]
jmp 0x481b48
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 0x481b76
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 0x481a41
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 0x481b76
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x481a10
inc edi
cmp edi, 3
jl 0x481a04
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x481a02
inc dword [ebp - 8]
sub dword [ebp + 0x10], 0xf
jmp 0x481b48
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 0x481b76
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 0x481b1c
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 0x481b76
add dword [ebp - 4], 8
inc ebx
cmp ebx, 8
jle 0x481aef
inc edi
cmp edi, 3
jl 0x481ae3
add dword [ebp + 0x10], 8
and dword [ebp - 4], 0
inc dword [ebp - 0x10]
add esi, 3
cmp dword [ebp - 0x10], 0x18
jl 0x481ae1
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 0x48197b
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 0x481b6f