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

Disassembly:
mov eax, 0x479ab7
call fcn.00457fe8
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 0x4139fc
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413b7b
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 0x413a44
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x413a3a
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x413a3a
cmp eax, dword [ebp - 0x20]
jae 0x413a3a
push esi
call fcn.0041388a
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x413a5b
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x413a54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x413b7a
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
jne 0x413a94
push 0xe
push eax
call fcn.00413917
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 0x413a8c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x413b7a
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
jbe 0x413b5d
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.00413932
add esp, 0x14
cmp eax, ebx
je 0x413b5d
cmp word [eax], bx
jne 0x413b5d
cmp word [eax + 2], 1
jne 0x413b5d
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.00413932
add esp, 0x14
cmp eax, ebx
je 0x413b89
mov ecx, dword [eax]
cmp ecx, 0x28
je 0x413b17
cmp ecx, 0xc
jne 0x413b89
cmp dword [ebp + 0x1c], ebx
je 0x413b25
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 0x413aab
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x413b77
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 0x413b77
push dword [ebp - 0x14]
jmp 0x413b71