Function at 0x403650
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x15c]
push ebx
sub esp, 0x1ac
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x411958
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x410e88
call sub.ole32.dll_CoCreateInstance
sub esp, 0x14
cmp eax, 0x80040154
je 0x404dd0
mov dword [esp + 4], 0x13e
mov ebx, eax
lea esi, [ebp - 0x16e]
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f44c
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x164]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x411238
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x141
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f488
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x410e98
mov dword [esp], eax
call dword [edx + 0x10]
mov ebx, eax
mov eax, dword [ebp - 0x164]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 4], 0x145
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f4c4
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
mov dword [esp + 8], 0x40e088
mov dword [esp + 4], 0x40e08c
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x148
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f4e6
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x16c]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.bIl
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x14b
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f4fc
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x14f
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f523
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x150
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov ecx, dword [ebp - 0x158]
xor eax, eax
mov dword [esp + 4], 0x40f53e
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x153
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f550
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x168], 0
lea ecx, [ebp - 0x168]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x157
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f57f
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x158
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov ebx, dword [ebp - 0x168]
xor eax, eax
mov dword [esp + 4], 0x40f59a
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp], str.currentPosition
call sub.oleaut32.dll_SysAllocString
mov edi, eax
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x168]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], edi
lea edi, [ebp - 0x150]
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x15c
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_get_isAvailable_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x15d
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
cmp word [ebp - 0x16e], 0
mov dword [esp + 4], str.unexpected_value_n
sete al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x168]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x160
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
cmp ebx, 0xd1105
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_play_is_available:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], 0x24
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x163
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPSettings_put_volume_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x60]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x165
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPSettings_get_volume_failed:__08x_n
mov ebx, section..bss
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x166
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], str.unexpected_value:__d_n
cmp eax, 0x24
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x413000
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov edx, ebx
sub esp, 8
cmp word [section..bss], 0
je 0x403b69
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x403b60
xor eax, eax
mov ecx, 0x74
jmp 0x403b79
movzx ecx, word [eax + str.test.mp3]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403b72
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], section..bss
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov dword [ebp - 0x18c], eax
mov dword [esp + 4], 0x54
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x194], eax
mov eax, ebx
shr eax, 0x10
je 0x404d40
mov dword [esp + 4], 0xffffffff
mov dword [esp], section..bss
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x404e20
cmp word [section..bss], 0
je 0x403c31
add eax, 1
cmp word [eax + eax + section..bss], 0
jne 0x403c23
mov edx, 0x224c
lea esi, [ebp - 0x26]
lea ebx, [eax - 1]
mov ecx, section..bss
mov word [ebp - 0x148], dx
lea edx, [ebp - 0x146]
mov dword [ebp - 0x188], ecx
cmp edx, esi
ja 0x403cb7
lea esi, [esi]
nop
test eax, eax
jle 0x403cb7
add dword [ebp - 0x188], 2
mov eax, dword [ebp - 0x188]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x404c93
ja 0x404c70
cmp ax, 9
je 0x404d10
cmp ax, 0xa
jne 0x404cb0
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
lea esi, [esi]
nop
lea ebx, [eax - 1]
cmp edx, esi
jbe 0x403c60
mov byte [edx], 0x22
lea eax, [edx + 1]
test ebx, ebx
jle 0x403cd1
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
lea esi, [ebp - 0x148]
mov byte [eax], 0
mov dword [esp], esi
call fcn.0040ca80
mov edi, dword [ebp - 0x194]
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x18c], 0xffffffff
mov dword [esp + 4], 0x40f698
setne al
mov dword [esp + 0xc], edi
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.test.mp3
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x58
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 4], 0x40f6bf
setne al
mov dword [esp], eax
call fcn.0040bf20
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
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 dword [ebp - 0x194], eax
mov dword [esp], 0
call edi
mov edx, dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 4
mov dword [ebp - 0x188], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x194]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 4], 0x5b
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov dword [esp], 0
call edi
mov edx, dword [ebp - 0x188]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call edx
sub esp, 8
cmp dword [ebp - 0x148], eax
sete al
mov dword [esp + 4], 0x40f6d7
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], section..bss
call sub.oleaut32.dll_SysAllocString
or dword [0x413658], 0xc2
mov edi, eax
sub esp, 4
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x16c]
or dword [0x413660], 0x600
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x170
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f6f0
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x171
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 1
mov dword [esp + 4], str.expected_OPENSTATE___d_n
and eax, 2
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x172
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413658], 0xfffffffd
and dword [0x413654], 0xfffffffd
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 7
mov dword [esp + 4], str.expected_OPENSTATE___d_n
and eax, 0x80
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x173
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413658], 0xffffff7f
and dword [0x413654], 0xffffff7f
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 6
mov dword [esp + 4], str.expected_OPENSTATE___d_n
and eax, 0x40
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x174
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413658], 0xffffffbf
and dword [0x413654], 0xffffffbf
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 9
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 0x200
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x175
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413660], 0xfffffdff
and dword [0x41365c], 0xfffffdff
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 0x400
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [0x413660]
and dword [0x41365c], 0xfffffbff
or dword [0x413658], 0x203000
and ah, 0xfb
or eax, 0x208
mov dword [0x413660], eax
mov eax, dword [ebp - 0x168]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x17e
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_play_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov edx, 0x413650
mov eax, 0x3e8
call fcn.00401570
mov dword [esp + 4], 0x180
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
mov ebx, eax
call fcn.0040bcb0
test ebx, ebx
jne 0x404d60
mov dword [esp + 4], str.Timed_out_while_waiting_for_media_to_become_ready_n
mov dword [esp], 1
call fcn.0040bf20
mov dword [esp + 4], 0x188
lea edi, [ebp - 0x16e]
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 0x15
mov dword [esp + 4], str.expected_OPENSTATE___d_n
and eax, 0x200000
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x189
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413658], 0xffdfffff
and dword [0x413654], 0xffdfffff
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.expected_OPENSTATE___d_n
and eax, 0x2000
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x18a
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413658], 0xffffdfff
and dword [0x413654], 0xffffdfff
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 3
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 8
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x18b
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
and dword [0x413660], 0xfffffff7
and dword [0x41365c], 0xfffffff7
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 9
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 0x200
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x168]
and dword [0x413660], 0xfffffdff
and dword [0x41365c], 0xfffffdff
and dword [0x413658], 0xffffefff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x190]
and dword [0x413654], 0xffffefff
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x190
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_get_isAvailable_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x191
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
cmp word [ebp - 0x16e], 0xffff
mov dword [esp + 4], str.unexpected_value_n
sete al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x168]
fldz
fstp qword [ebp - 0x148]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x34]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x195
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_get_currentPosition_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x196
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
fld qword [ebp - 0x148]
mov dword [esp + 4], str.unexpected_value__f_n
fnstcw word [ebp - 0x17a]
movzx eax, word [ebp - 0x17a]
fst qword [esp + 8]
or ah, 0xc
mov word [ebp - 0x17c], ax
fldcw word [ebp - 0x17c]
fistp dword [ebp - 0x180]
fldcw word [ebp - 0x17a]
mov eax, dword [ebp - 0x180]
test eax, eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
fld qword [0x40fbf0]
mov eax, dword [ebp - 0x168]
fst qword [ebp - 0x148]
mov edx, dword [eax]
fstp qword [esp + 4]
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x19a
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_put_currentPosition_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x168]
fldz
fstp qword [ebp - 0x148]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x34]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x19e
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_get_currentPosition_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x19f
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
fld qword [ebp - 0x148]
xor eax, eax
mov dword [esp + 4], str.unexpected_value__f_n
fst qword [esp + 8]
fld qword [0x40fbf8]
fxch st(1)
fcompi st(1)
fstp st(0)
setae al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x14c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1a2
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPPlayer4_get_currentMedia_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
mov dword [esp + 4], esi
lea esi, [ebp - 0x150]
mov dword [esp], eax
call dword [edx + 0x40]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1a4
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPMedia_get_duration_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1a5
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
fld qword [ebp - 0x148]
mov edx, 0
mov dword [esp + 4], str.unexpected_value:__f_n
fnstcw word [ebp - 0x17a]
movzx eax, word [ebp - 0x17a]
fld st(0)
fadd dword [0x40fc00]
and ah, 0xf3
or ah, 4
mov word [ebp - 0x182], ax
xor eax, eax
fldcw word [ebp - 0x182]
frndint
fldcw word [ebp - 0x17a]
fxch st(1)
fstp qword [esp + 8]
fld dword [0x40fc04]
fucompi st(1)
fstp st(0)
setnp al
cmovne eax, edx
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x14c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], 0
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1aa
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], 0x40f8a3
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1ab
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov edx, dword [ebp - 0x154]
xor eax, eax
mov dword [esp + 4], 0x40f8bd
test edx, edx
setne al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], 0
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x38]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1ae
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, 1
test ebx, ebx
jne 0x404e00
mov dword [esp], eax
lea esi, [ebp - 0x150]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.IWMPNetwork_get_bufferingProgress_failed:__08x_n
call fcn.0040bf20
mov dword [esp + 4], 0x1af
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], str.unexpected_value:__d_n
cmp eax, 0x64
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], 0
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x1b2
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPNetwork_get_downloadProgress_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1b3
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], str.unexpected_value:__d_n
cmp eax, 0x64
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x154]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x168]
or dword [0x413660], 2
sub esp, 4
or dword [0x413658], 0x40
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 4
mov ebx, eax
mov dword [esp + 4], 0x1ba
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.IWMPControls_stop_failed:__08x_n
mov ebx, 0x40f950
mov dword [esp], eax
mov edi, ebx
call fcn.0040bf20
mov dword [esp + 4], 0x1bb
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 1
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 2
mov dword [esp], eax
call fcn.0040bf20
mov esi, dword [str.windows]
mov ecx, 5
and dword [0x413660], 0xfffffffd
and dword [0x41365c], 0xfffffffd
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040c090
jmp 0x4047d1
mov dword [esp + 4], 0x1bc
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 6
mov dword [esp + 4], str.not_expected_OPENSTATE___d_n
shr eax, 6
xor eax, 1
and eax, 1
mov dword [esp], eax
call fcn.0040bf20
and dword [0x413658], 0xffffffbf
and dword [0x413654], 0xffffffbf
call fcn.0040c0e0
call fcn.0040c0c0
test eax, eax
jne 0x404784
mov eax, dword [ebp - 0x168]
mov edi, ebx
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x1c0
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
cmp esi, 0xd1105
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.IWMPControls_stop_is_available:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x168]
or dword [0x413658], 0x202000
or dword [0x413660], 0x208
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 4
mov esi, eax
mov dword [esp + 4], 0x1c8
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.IWMPControls_play_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1c9
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 3
mov dword [esp + 4], str.expected_PLAYSTATE___d_n
and eax, 8
mov dword [esp], eax
call fcn.0040bf20
mov esi, dword [str.windows]
mov ecx, 5
and dword [0x413660], 0xfffffff7
and dword [0x41365c], 0xfffffff7
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040c090
jmp 0x404933
mov dword [esp + 4], 0x1ca
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 0x15
mov dword [esp + 4], str.not_expected_OPENSTATE___d_n
shr eax, 0x15
xor eax, 1
and eax, 1
mov dword [esp], eax
call fcn.0040bf20
and dword [0x413658], 0xffdfffff
and dword [0x413654], 0xffdfffff
call fcn.0040c0e0
call fcn.0040c0c0
test eax, eax
jne 0x4048e0
mov esi, dword [str.windows]
mov ecx, 5
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040c090
jmp 0x4049b5
mov dword [esp + 4], 0x1cb
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x413654]
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.not_expected_OPENSTATE___d_n
shr eax, 0xd
xor eax, 1
and eax, 1
mov dword [esp], eax
call fcn.0040bf20
and dword [0x413658], 0xffffdfff
and dword [0x413654], 0xffffdfff
call fcn.0040c0e0
call fcn.0040c0c0
test eax, eax
jne 0x404962
mov esi, dword [str.windows]
mov ecx, 5
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040c090
jmp 0x404a37
mov dword [esp + 4], 0x1cc
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [0x41365c]
mov dword [esp + 8], 9
mov dword [esp + 4], str.not_expected_PLAYSTATE___d_n
shr eax, 9
xor eax, 1
and eax, 1
mov dword [esp], eax
call fcn.0040bf20
and dword [0x413660], 0xfffffdff
and dword [0x41365c], 0xfffffdff
call fcn.0040c0e0
call fcn.0040c0c0
test eax, eax
jne 0x4049e4
mov ebx, 1
mov eax, dword [ebp - 0x160]
mov ecx, dword [0x40e088]
lea edi, [ebp - 0x150]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x1d0
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], 0x40f9b6
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x60]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x1d3
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.IWMPSettings_get_volume_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1d4
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], str.unexpected_value:__d_n
cmp eax, 0x24
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], 0x63
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x1d6
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.IWMPSettings_put_volume_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x60]
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x1d8
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.IWMPSettings_get_volume_failed:__08x_n
mov dword [esp], eax
call fcn.0040bf20
mov dword [esp + 4], 0x1d9
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x150]
mov dword [esp + 4], str.unexpected_value:__d_n
cmp eax, 0x63
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
mov eax, dword [ebp - 0x160]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x158]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x168]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x16c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x15c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov edi, dword [ebp - 0x188]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov dword [esp], edi
call sub.oleaut32.dll_SysFreeString
mov eax, dword [ebp - 0x190]
sub esp, 4
mov dword [esp], eax
call sub.oleaut32.dll_SysFreeString
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
je 0x404d23
cmp ax, 0x5c
jne 0x404cb0
mov edi, 0x5c5c
add edx, 2
mov eax, ebx
mov word [edx - 2], di
jmp 0x403cb0
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x403cb0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x404dc0
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefP]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefP]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefP]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefP]
mov byte [edx - 1], al
mov eax, ebx
mov byte [edx - 2], cl
jmp 0x403cb0
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x403cb0
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x403cb0
movzx ebx, bx
mov dword [esp], 0x40f1fc
lea esi, [ebp - 0x148]
mov dword [esp + 4], ebx
call fcn.004010e0
jmp 0x403ce2
xor eax, eax
cmp ebx, 0x102
sete al
mov dword [esp], eax
call fcn.0040bd90
mov dword [esp + 4], str.Timed_out_while_waiting_for_media_to_become_ready_n
test eax, eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0040bf20
cmp ebx, 0x102
jne 0x4040a5
mov dword [esp + 4], 0x184
xor ebx, ebx
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov dword [esp], str.Failed_to_transition_media_to_playing_state._n
call fcn.0040c030
jmp 0x404a45
mov byte [edx], al
add edx, 1
mov eax, ebx
jmp 0x403cb0
mov dword [esp + 4], 0x13b
xor ebx, ebx
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov dword [esp], 0x40f420
call fcn.0040c030
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp], eax
call fcn.0040bd90
test eax, eax
setne al
movzx eax, al
jmp 0x4045db
mov eax, 0x40f1f2
lea esi, [ebp - 0x148]
jmp 0x403ce2