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

Disassembly:
push 0x50
mov eax, 0x467998
call fcn.00463b20
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
push ecx
lea ecx, [ebp - 0x5c]
xor ebx, ebx
call fcn.004327b3
mov dword [ebp - 4], ebx
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov edi, ebx
mov dword [ebp - 0x1c], ebx
test edx, edx
je 0x41d879
cmp word [edx], bx
je 0x41d879
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41d879
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp byte [ebp + 8], bl
je 0x41d72d
push edx
lea ecx, [ebp - 0x18]
call fcn.0040769d
mov edi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
push edi
push eax
mov ecx, 0x48bd58
call fcn.004078e6
mov esi, dword [ebp - 0x1c]
mov ecx, dword [0x48bd58]
cmp esi, ecx
je 0x41d703
push dword [esi + 0x10]
mov ecx, edi
call fcn.00407923
test eax, eax
jns 0x41d705
mov ecx, dword [0x48bd58]
mov esi, ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406985
cmp esi, dword [0x48bd58]
je 0x41d72a
mov edi, dword [ebp - 0x10]
add esi, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x41d8a1
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], 9
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
call edi
cmp esi, 0xffffffff
jne 0x41d780
cmp eax, 0x20
je 0x41d763
cmp eax, 5
jne 0x41d777
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x14]
jns 0x41d73a
call edi
mov ebx, eax
jmp 0x41d8a1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41d895
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41d7b0
call edi
mov ebx, eax
jmp 0x41d895
push dword [ebp - 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x41d7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41d887
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.0041c0eb
cmp byte [ebp + 8], 0
pop ecx
je 0x41d87c
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040769d
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push edi
push eax
mov ecx, 0x48bd58
call fcn.004078e6
mov esi, dword [ebp - 0x18]
cmp esi, dword [0x48bd58]
je 0x41d830
push dword [esi + 0x10]
mov ecx, edi
call fcn.00407923
test eax, eax
jns 0x41d859
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push ecx
mov edi, 0x48bd58
mov ecx, edi
call fcn.0042050e
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.00420577
mov esi, dword [ebp - 0x18]
lea edi, [esi + 0x14]
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x41d87c
push 0x57
pop ebx
test edi, edi
je 0x41d887
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d895
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x41d8a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004327d5
mov eax, ebx
call fcn.00463ae9
ret