Function at 0x4af7fd
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, 0x58e778
push dword [ebp + 0xc]
call fcn.00496dfe
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 0x4afa41
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 0x4af946
call dword [sym.imp.MSVCRT.dll_malloc]
cmp byte [esi], 0x20
pop ecx
mov ebx, eax
jne 0x4af875
add dword [ebp + 0xc], 0x3a
inc dword [ebp - 0xc]
jmp 0x4afa2f
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 0x4afa4b
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.004af7e7
cmp eax, 1
jne 0x4af917
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.004b0bc2
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4af8d3
inc edi
cmp edi, 3
jl 0x4af8cc
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4af8ca
inc dword [ebp - 0xc]
sub dword [ebp + 0xc], 0xf
jmp 0x4afa2f
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 0x4afa4b
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.004af7e7
cmp eax, 1
jne 0x4afa04
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.004b0bc2
add dword [ebp - 4], 4
inc dword [ebp - 8]
cmp dword [ebp - 8], 8
jle 0x4af9c0
inc edi
cmp edi, 3
jl 0x4af9b9
add dword [ebp + 0xc], 4
and dword [ebp - 4], 0
add ebx, 3
dec dword [ebp - 0x14]
jne 0x4af9b7
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 0x4af842
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4afa44