Function at 0x45fda0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x124], ecx
xor eax, eax
nop dword [eax + eax]
cmp dword [eax + 0x4d3610], 0
je 0x45fe20
cmp dword [eax + 0x4d3664], 0
je 0x45fe1f
cmp dword [eax + 0x4d36b8], 0
je 0x45fe1a
cmp dword [eax + 0x4d370c], 0
je 0x45fe15
add eax, 0x150
add edi, 4
cmp eax, 0x2a00
jb 0x45fde0
jmp 0x45fe20
add edi, 3
jmp 0x45fe20
add edi, 2
jmp 0x45fe20
inc edi
imul esi, edi, 0x54
push 0x54
push 0
add esi, 0x4d3610
push esi
call fcn.0046f210
mov ecx, dword [ebp - 0x120]
lea eax, [edi + 1]
add esp, 0xc
mov dword [ecx + 8], eax
test esi, esi
je 0x45ffe8
push dword [ebp - 0x124]
lea eax, [ebp - 0x110]
push str._s.ani
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
jne 0x45feae
lea eax, [ebp - 0x110]
push eax
push 0x4c144c
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push dword [ebp - 0x114]
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x45fefb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
push 0x4c1430
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea ecx, [ebp - 0x124]
push ecx
push dword [ebp - 0x114]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp - 0x124]
je 0x45ff62
push dword [esi + 0x10]
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x10], 0
mov dword [eax + 8], 0
lea eax, [ebp - 0x110]
push eax
push str.Read_Error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x14
jmp 0x45ffe8
mov ecx, dword [ebp - 0x120]
mov dword [esi], 1
mov dword [esi + 4], 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 8], 2
mov eax, dword [0x4d6060]
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], 0x4d6010
mov eax, dword [0x4d6060]
test eax, eax
je 0x45ff9d
mov dword [eax + 0x4c], esi
mov dword [0x4d6060], esi
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx - 4]
mov dword [esi + 0x18], eax
cmp byte [eax + ecx], 0xfc
jne 0x45ffc4
mov ecx, esi
mov dword [esi + 8], 1
call fcn.0045ef10
call fcn.00463d00
test al, 0x30
je 0x45ffe1
mov ecx, esi
call fcn.0045ef10
test eax, eax
jne 0x45ffe8
mov ecx, esi
call fcn.0045f9f0
jmp 0x45ffe8
mov dword [esi + 8], 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret