Function at 0x4038e0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40f33c
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x470
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
mov eax, 0x40f33c
call fcn.00401c10
mov dword [esp + 4], str.FindResourceW__s_failed__error__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 0xc], esi
mov dword [esp], eax
call fcn.00402690
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [esp], 0
call edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LockResource]
sub esp, 4
mov esi, eax
mov dword [esp], 0
call edi
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 3
call sub.mfplat.dll_MFCreateTempFile
sub esp, 0x10
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x475
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.00402690
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call dword [edx + 0x30]
sub esp, 0x10
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x477
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.00402690
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x479
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.00402690
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x412a84
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x47c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.00402690
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp + 8], str.video_avi
mov dword [esp + 4], 0x412984
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 0xc
mov ebx, eax
call fcn.0040afa0
mov dword [eax], 0x40f01c
mov dword [eax + 4], 0x47e
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Failed_to_set_string_value__hr__lx._n
call fcn.00402690
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x14]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret