Function at 0x41aaeb
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x474fcc
call fcn.004535cc
sub esp, 0x20
push ebx
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x41ab39
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41acb8
push esi
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x41ab81
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41ab77
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x41ab77
cmp eax, dword [ebp - 0x20]
jae 0x41ab77
push esi
call fcn.0041a9c7
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x41ab98
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x41ab91
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41acb7
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
jne 0x41abd1
push 0xe
push eax
call fcn.0041aa54
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x41abc9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x41acb7
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
jbe 0x41ac9a
mov eax, dword [ebp + 0x1c]
sub eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push 0xe
push dword [ebp + 0xc]
push dword [ebp - 0x20]
push esi
call fcn.0041aa6f
add esp, 0x14
cmp eax, ebx
je 0x41ac9a
cmp word [eax], bx
jne 0x41ac9a
cmp word [eax + 2], 1
jne 0x41ac9a
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push 3
mov eax, edi
neg eax
push eax
push dword [ebp - 0x20]
push esi
call fcn.0041aa6f
add esp, 0x14
cmp eax, ebx
je 0x41acc6
mov ecx, dword [eax]
cmp ecx, 0x28
je 0x41ac54
cmp ecx, 0xc
jne 0x41acc6
cmp dword [ebp + 0x1c], ebx
je 0x41ac62
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx + edx], edi
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x30000
push 1
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 0x18], 4
inc dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x20]
jb 0x41abe8
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x41acb4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0xffffffff
je 0x41acb4
push dword [ebp - 0x14]
jmp 0x41acae