Function at 0x499443
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, 0x56b6d0
push dword [ebp + 0xc]
call fcn.00481133
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 0x499687
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 0x49958c
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4994bb
add dword [ebp + 0xc], 0x3a
inc dword [ebp - 0xc]
jmp 0x499675
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 0x499691
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.0049942d
cmp eax, 1
jne 0x49955d
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.0049a807
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x499519
inc edi
cmp edi, 3
jl 0x499512
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x499510
inc dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xf
jmp 0x499675
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 0x499691
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.0049942d
cmp eax, 1
jne 0x49964a
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.0049a807
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x499606
inc edi
cmp edi, 3
jl 0x4995ff
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4995fd
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 0x499488
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x49968a