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

Disassembly:
mov eax, 0x474f8b
call fcn.0045357c
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 0x41ab2f
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41acae
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 0x41ab77
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41ab6d
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x41ab6d
cmp eax, dword [ebp - 0x20]
jae 0x41ab6d
push esi
call fcn.0041a9bd
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x41ab8e
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x41ab87
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41acad
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
jne 0x41abc7
push 0xe
push eax
call fcn.0041aa4a
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 0x41abbf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x41acad
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
jbe 0x41ac90
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.0041aa65
add esp, 0x14
cmp eax, ebx
je 0x41ac90
cmp word [eax], bx
jne 0x41ac90
cmp word [eax + 2], 1
jne 0x41ac90
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.0041aa65
add esp, 0x14
cmp eax, ebx
je 0x41acbc
mov ecx, dword [eax]
cmp ecx, 0x28
je 0x41ac4a
cmp ecx, 0xc
jne 0x41acbc
cmp dword [ebp + 0x1c], ebx
je 0x41ac58
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 0x41abde
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x41acaa
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 0x41acaa
push dword [ebp - 0x14]
jmp 0x41aca4