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

Disassembly:
mov eax, 0x46fcc3
call fcn.0044e5d8
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 0x417a24
or dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x417ba3
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 0x417a6c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x417a62
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jle 0x417a62
cmp eax, dword [ebp - 0x20]
jae 0x417a62
push esi
call fcn.004178b2
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x417a83
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x417a7c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x417ba2
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x1c], ebx
cmp ecx, ebx
jne 0x417abc
push 0xe
push eax
call fcn.0041793f
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 0x417ab4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x417ba2
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0x20], ebx
jbe 0x417b85
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.0041795a
add esp, 0x14
cmp eax, ebx
je 0x417b85
cmp word [eax], bx
jne 0x417b85
cmp word [eax + 2], 1
jne 0x417b85
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.0041795a
add esp, 0x14
cmp eax, ebx
je 0x417bb1
mov ecx, dword [eax]
cmp ecx, 0x28
je 0x417b3f
cmp ecx, 0xc
jne 0x417bb1
cmp dword [ebp + 0x1c], ebx
je 0x417b4d
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 0x417ad3
mov byte [ebp - 4], bl
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
or dword [ebp - 4], 0xffffffff
cmp edi, 0xffffffff
je 0x417b9f
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 0x417b9f
push dword [ebp - 0x14]
jmp 0x417b99