Function at 0x498e18
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, 0x569690
push dword [ebp + 0xc]
call fcn.00480b63
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 0x49905c
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 0x498f61
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x498e90
add dword [ebp + 0xc], 0x3a
inc dword [ebp - 0xc]
jmp 0x49904a
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 0x499066
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.00498e02
cmp eax, 1
jne 0x498f32
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.0049a1d4
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x498eee
inc edi
cmp edi, 3
jl 0x498ee7
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x498ee5
inc dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xf
jmp 0x49904a
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 0x499066
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.00498e02
cmp eax, 1
jne 0x49901f
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.0049a1d4
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x498fdb
inc edi
cmp edi, 3
jl 0x498fd4
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x498fd2
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 0x498e5d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x49905f