Function at 0x4af84c
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, 0x58f638
push dword [ebp + 0xc]
call fcn.00496f3e
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 0x4afa90
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 0x4af995
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4af8c4
add dword [ebp + 0xc], 0x3a
inc dword [ebp - 0xc]
jmp 0x4afa7e
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 0x4afa9a
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.004af836
cmp eax, 1
jne 0x4af966
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.004b0c10
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4af922
inc edi
cmp edi, 3
jl 0x4af91b
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4af919
inc dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xf
jmp 0x4afa7e
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 0x4afa9a
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.004af836
cmp eax, 1
jne 0x4afa53
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.004b0c10
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4afa0f
inc edi
cmp edi, 3
jl 0x4afa08
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4afa06
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 0x4af891
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4afa93