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

Disassembly:
push 0x38
mov eax, 0x535dfd
call fcn.004f2332
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
call fcn.004c3398
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4ddb49
push 0x55aff0
push edi
push 8
call fcn.004db115
add esp, 0xc
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp esi, 0xffffffff
jne 0x4dda07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x55aff0
push esi
push 8
call fcn.004db115
push ebx
push esi
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x5aea00
call fcn.004de360
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
add esp, 0x1c
mov esi, dword [ebp - 0x34]
jmp 0x4ddb3e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push esi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x4dda4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x55aff0
push esi
push 8
call fcn.004db115
push ebx
push esi
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
push 0x5aea00
call fcn.004de360
jmp 0x4dd9f9
push dword [ebp - 0x2c]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x4dda8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x55aff0
push esi
push 8
call fcn.004db115
push dword [ebp - 0x44]
push esi
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
push 0x5aea00
call fcn.004de360
jmp 0x4dd9fc
push 0x5438dc
push 0x5aea00
call fcn.004de360
push 0x55aff0
push edi
push 9
call fcn.004db115
mov ecx, dword [ebp - 0x40]
add esp, 0x14
push dword [ebp - 0x3c]
mov eax, dword [ecx]
push dword [ebp - 0x2c]
push ebx
push ecx
call dword [eax]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x3c], ecx
sete al
push eax
push str.Extract_return:_d
push 0x5aea00
call fcn.004de360
mov eax, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
je 0x4ddb3b
push 0x55aff0
push eax
push 0xa
call fcn.004db115
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x28]
add esp, 0xc
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], edi
jb 0x4ddb11
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x30]
push eax
call fcn.0043a8c3
pop ecx
push eax
push dword [ebp - 0x2c]
lea ecx, [esi + 0x1c]
call fcn.0043a84a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00417d20
jmp 0x4dd9ff
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x40]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4ddb55
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
cmp esi, 0xffffffff
je 0x4ddb61
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4ddb6c
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
je 0x4ddb7b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004f22e1
ret 8