Function at 0x100454d
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xf54], edi
je 0x10047a6
cmp dword [esi + 0xf5c], edi
jne 0x1004592
cmp dword [esi + 0xf70], edi
je 0x1004592
mov eax, dword [esi]
push 0x124
push 2
push 0x11
push eax
call fcn.01003627
cmp eax, 6
jne 0x10047b3
push 3
push 0x80000000
mov ecx, esi
call fcn.010044d0
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x10047a6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1004792
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004792
mov eax, dword [ebx]
cmp eax, 5
jge 0x10045f5
mov ecx, dword [esi + 4]
xor edi, edi
mov dword [ecx], eax
inc edi
jmp 0x10045fe
mov eax, dword [esi + 4]
mov dword [eax], 4
mov eax, dword [ebx + edi*4]
mov ecx, dword [esi + 4]
push eax
mov dword [esi + 0x10], eax
inc edi
call fcn.0100746e
mov ecx, dword [ebx + edi*4]
mov eax, dword [esi + 4]
mov dword [eax + 0x10], ecx
inc edi
mov eax, dword [ebx + edi*4]
inc edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + edi*4]
inc edi
mov dword [esi + 0x350], eax
mov eax, dword [ebx + edi*4]
push 4
mov dword [esi + 0x58], eax
inc edi
lea eax, [esi + 0xf10]
pop ecx
mov edx, dword [ebx + edi*4]
mov dword [eax], edx
inc edi
add eax, 4
dec ecx
jne 0x1004639
cmp dword [ebx + edi*4], 5
jge 0x1004660
push 8
lea eax, [esi + 0xf20]
pop ecx
mov edx, dword [ebx + edi*4]
mov dword [eax], edx
inc edi
add eax, 4
dec ecx
jne 0x1004654
mov ecx, dword [esi + 8]
call fcn.01008042
and dword [ebp - 8], 0
mov eax, dword [ebx + edi*4]
and dword [ebp - 4], 0
inc edi
mov ecx, dword [ebx + edi*4]
inc edi
test eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jle 0x10046bf
mov eax, dword [ebx + edi*4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor eax, eax
inc edi
cmp dword [ebp - 4], ecx
mov ecx, dword [esi + 8]
setge al
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
call fcn.01008069
push dword [ebp - 0x10]
mov ecx, dword [esi + 4]
push dword [ebp - 0x14]
call fcn.01007400
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x1004682
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jl 0x100466c
mov eax, edi
shl eax, 2
cmp eax, dword [ebp - 0x18]
jae 0x10046dd
mov eax, dword [eax + ebx]
mov dword [esi + 0xf58], eax
jmp 0x10046e7
mov dword [esi + 0xf58], 0x1f4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x5c], 0
mov ecx, esi
call fcn.01003259
push dword [esi]
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
mov ebx, eax
push 0x9c4b
push ebx
call edi
push 0
push 0x9c46
push ebx
call edi
push 0
push 0x9c4d
push ebx
call edi
cmp dword [esi + 0x58], 5
jge 0x1004744
push 0
push 0x9c47
push ebx
call edi
push 0
jmp 0x1004750
push 1
push 0x9c47
push ebx
call edi
push 1
push 0x9c50
push ebx
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov ecx, esi
call fcn.01002e98
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
xor ebx, ebx
push ebx
push dword [esi]
mov dword [esi + 0xf5c], ebx
call edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.01003811
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call edi
jmp 0x10047b3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10047a6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push 2
push 0x12
push dword [esi]
call fcn.01003627
pop edi
pop esi
pop ebx
leave
ret