Function at 0x416f50
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x10c]
sub esp, 0x10c
push 0xffffffffffffffff
push 0x577ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x60bd28]
xor eax, ebp
mov dword [ebp + 0x108], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x114]
mov edi, dword [ebp + 0x118]
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], esi
call fcn.00512f10
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x416fba
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp]
push ecx
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416fe1
sub eax, edx
push eax
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 1
push 0x5961cc
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 5
push str.Dummy
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 1
push 0x5961cc
lea ecx, [ebp - 0x14]
call fcn.004086f0
push 9
push str.Dummy.wmv
lea ecx, [ebp - 0x14]
call fcn.004086f0
lea eax, [ebp - 0x14]
push eax
call fcn.0042b480
add esp, 4
push ecx
test al, al
mov eax, dword [ebp - 0x14]
mov esi, esp
je 0x41706d
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.0042a7f0
add esp, 8
jmp 0x417243
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
push eax
call fcn.00401b70
lea ecx, [ebp - 0x1c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0042b630
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 1
call fcn.0042ada0
add esp, 0xc
test al, al
jne 0x4170c0
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.00401b70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042ae80
add esp, 4
push str.VIDEO
push 0x458
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4171ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x44]
mov esi, eax
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
call fcn.0051eeda
mov eax, dword [ebp - 0x14]
push 0
push 0x9001
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0051ef3a
test eax, eax
je 0x41715e
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0051f0ec
mov eax, dword [ebp - 0x14]
push 5
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
mov dword [esi], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
mov byte [ebp - 4], 4
push str.Dummy_video_OK
jmp 0x417189
mov eax, dword [ebp - 0x14]
push 2
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
mov dword [esi], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov byte [ebp - 4], 5
push str.Dummy_video_ERROR
call fcn.00402a30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0043bcd0
lea ecx, [ebp - 0x5c]
call fcn.0043a600
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0051f33e
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp - 0x20]
jmp 0x4171fd
push 0
push 0x596192
lea ecx, [ebp - 0x14]
call fcn.00402290
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov esi, esp
push eax
call fcn.00401b70
add esp, 4
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.0042a7f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x108]
xor ecx, ebp
call fcn.0053fab2
add ebp, 0x10c
mov esp, ebp
pop ebp
ret