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

Disassembly:
mov eax, 0x47b22a
call fcn.00459afc
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 0x412831
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4129b0
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 0x412879
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41286f
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x41286f
cmp eax, dword [ebp - 0x20]
jae 0x41286f
push esi
call fcn.004126bf
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x412890
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x412889
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4129af
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
jne 0x4128c9
push 0xe
push eax
call fcn.0041274c
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 0x4128c1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x4129af
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
jbe 0x412992
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.00412767
add esp, 0x14
cmp eax, ebx
je 0x412992
cmp word [eax], bx
jne 0x412992
cmp word [eax + 2], 1
jne 0x412992
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.00412767
add esp, 0x14
cmp eax, ebx
je 0x4129be
mov ecx, dword [eax]
cmp ecx, 0x28
je 0x41294c
cmp ecx, 0xc
jne 0x4129be
cmp dword [ebp + 0x1c], ebx
je 0x41295a
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 0x4128e0
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x4129ac
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 0x4129ac
push dword [ebp - 0x14]
jmp 0x4129a6