Function at 0x4b8a53
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
lea eax, [ebp - 0x20]
and dword [ebp - 0xc], 0
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, 0x5d91d0
push dword [ebp + 0xc]
call fcn.0049f86c
mov eax, dword [ebp - 0x20]
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x10], eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x4b8c97
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x48
test byte [eax + ecx], 0x80
lea esi, [eax + ecx]
jne 0x4b8b9c
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4b8acb
add dword [ebp + 0xc], 0x3a
inc dword [ebp - 0xc]
jmp 0x4b8c85
sub dword [ebp + 0xc], 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 0x4b8ca1
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
mov dword [ebp - 0x14], 0x18
xor edi, edi
mov dword [ebp - 8], 1
movsx eax, byte [ebx + edi]
push dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004b8a3d
cmp eax, 1
jne 0x4b8b6d
push 8
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0xbc]
call fcn.004b9e0f
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4b8b29
inc edi
cmp edi, 3
jl 0x4b8b22
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4b8b20
inc dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xf
jmp 0x4b8c85
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 0x4b8ca1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
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
mov dword [ebp - 0x14], 0x18
xor edi, edi
mov dword [ebp - 8], 1
movzx eax, byte [ebx + edi]
push dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004b8a3d
cmp eax, 1
jne 0x4b8c5a
push 8
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0xbc]
call fcn.004b9e0f
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4b8c16
inc edi
cmp edi, 3
jl 0x4b8c0f
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4b8c0d
add dword [ebp - 0xc], 2
add dword [ebp + 0xc], 0xa
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp dword [ebp - 0xc], eax
pop ecx
jne 0x4b8a98
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4b8c9a