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

Disassembly:
push 8
push 0x70
mov eax, 0x47d8e4
call fcn.0047a98e
mov esi, edx
mov dword [ebp - 0x18], esi
mov edi, ecx
mov dword [ebp - 0x1c], edi
and dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00435951
xor edx, edx
mov dword [ebp - 4], edx
test edi, edi
je 0x41ff33
cmp word [edi], dx
je 0x41ff33
test esi, esi
je 0x41ff33
push 8
xor eax, eax
mov edi, esi
pop ecx
rep stosd dword es:[edi], eax
cmp byte [ebx + 8], al
je 0x41fe07
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
call fcn.0040948c
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push edi
push eax
mov ecx, 0x4a7484
call fcn.0040999a
mov esi, dword [ebp - 0x30]
cmp byte [esi + 0xd], 0
jne 0x41fdd8
lea eax, [esi + 0x10]
push eax
push edi
call fcn.00409a6c
test al, al
je 0x41fdde
mov esi, dword [0x4a7484]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
cmp esi, dword [0x4a7484]
je 0x41fe05
mov edi, dword [ebp - 0x18]
add esi, 0x14
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x41ff3a
xor edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], 9
push edx
push edx
push 3
push edx
push 5
push SysReAllocString
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
call edi
cmp esi, 0xffffffff
jne 0x41fe5d
cmp eax, 0x20
je 0x41fe3f
cmp eax, 5
jne 0x41fe53
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x24], 1
push 0
pop edx
jns 0x41fe14
call edi
mov dword [ebp - 0x14], eax
jmp 0x41ff3a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41ff2a
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x41fe97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x41ff2a
push dword [ebp - 0x24]
xor eax, eax
push eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x41feb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ff20
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov ecx, eax
call fcn.0041e99b
cmp byte [ebx + 8], 0
pop ecx
je 0x41ff15
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x58]
push 8
pop ecx
push dword [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x24]
call fcn.0040948c
mov byte [ebp - 4], 3
mov ecx, 0x4a7484
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00423241
push 8
pop ecx
lea esi, [ebp - 0x58]
mov edi, dword [eax]
add edi, 0x14
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ff3a
mov dword [ebp - 0x14], 0x57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00435973
mov eax, dword [ebp - 0x14]
call fcn.0047a90b
ret