Function at 0x40dd40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x60
call fcn.004012a0
mov edi, eax
mov eax, 0x872
call fcn.004013f0
xor eax, eax
test edi, edi
mov dword [esp + 4], str.Failed_to_create_a_test_window._n
setne al
mov dword [esp], eax
call fcn.00401f80
lea ecx, [ebp - 0x48]
mov dword [esp + 8], 0x41c31c
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x4258f4
mov dword [esp], 0
call sub.evr.dll_MFCreateVideoPresenter
sub esp, 0x10
mov ebx, eax
mov eax, 0x876
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Failed_to_create_default_presenter__hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x50]
mov ebx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x41c27c
mov dword [esp], eax
call dword [ebx]
sub esp, 0xc
mov ebx, eax
mov eax, 0x878
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x87b
call fcn.004013f0
xor eax, eax
cmp ebx, 0xc00d36b2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xa
mov ebx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebx + 0x14]
sub esp, 0xc
mov ebx, eax
mov eax, 0x87e
call fcn.004013f0
xor eax, eax
cmp ebx, 0x80004003
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [ebx + 0x24]
sub esp, 8
mov ebx, eax
mov eax, 0x880
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ebx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x883
call fcn.004013f0
xor eax, eax
cmp ebx, 0xc00d36b2
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebx + 0x14]
sub esp, 0xc
mov ebx, eax
mov eax, 0x885
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov ebx, dword [eax]
mov dword [esp], eax
call dword [ebx + 8]
mov eax, dword [ebp - 0x48]
sub esp, 4
mov ebx, dword [eax]
mov dword [esp], eax
call dword [ebx + 8]
lea eax, [ebp - 0x44]
sub esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x41ae2c
mov dword [esp + 4], 0x4258f4
mov dword [esp], 0
call sub.evr.dll_MFCreateVideoMixer
sub esp, 0x10
mov ebx, eax
mov eax, 0x88c
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Failed_to_create_a_mixer__hr__lx._n
mov dword [esp], eax
call fcn.00401f80
lea ecx, [ebp - 0x48]
mov dword [esp + 8], 0x41c31c
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x4258f4
mov dword [esp], 0
call sub.evr.dll_MFCreateVideoPresenter
sub esp, 0x10
mov ebx, eax
mov eax, 0x88f
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Failed_to_create_default_presenter__hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x41c27c
mov dword [esp], eax
call dword [ecx]
sub esp, 0xc
mov ebx, eax
mov eax, 0x892
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x54]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41c2cc
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
mov eax, 0x895
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2c], 0x419180
mov dword [ebp - 0x28], 0x419170
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
mov eax, 0x89b
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 4
mov ebx, eax
mov eax, 0x89e
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 8
mov ebx, eax
mov eax, 0x8a1
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x78]
sub esp, 8
mov ebx, eax
mov eax, 0x8a4
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
lea ebx, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8a5
call fcn.004013f0
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.Unexpected_count__u._n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41c22c
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 0x14
mov dword [ebp - 0x58], eax
mov eax, 0x8a9
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8aa
call fcn.004013f0
fldz
fld dword [ebp - 0x3c]
fucompi st(1)
jp 0x40e28c
jne 0x40e290
fld dword [ebp - 0x38]
fucompi st(1)
fstp st(0)
jp 0x40e2a8
jne 0x40e2a8
fld1
fld dword [ebp - 0x34]
fucompi st(1)
jp 0x40e294
jne 0x40e2a0
fld dword [ebp - 0x30]
xor eax, eax
mov edx, 0
fucompi st(1)
fstp st(0)
setnp al
cmovne eax, edx
jmp 0x40e2aa
fstp st(0)
jmp 0x40e2a8
fstp st(0)
jmp 0x40e2a8
fstp st(0)
jmp 0x40e2a8
fstp st(0)
lea esi, [esi]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_source_rectangle._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8ae
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80004003
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8b1
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80004003
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 4
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8b5
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8b6
call fcn.004013f0
fldz
fld dword [ebp - 0x3c]
fucompi st(1)
jp 0x40e3ea
jne 0x40e3f0
fld dword [ebp - 0x38]
fucompi st(1)
fstp st(0)
jp 0x40e408
jne 0x40e408
fld1
fld dword [ebp - 0x34]
fucompi st(1)
jp 0x40e3f4
jne 0x40e400
fld dword [ebp - 0x30]
xor eax, eax
mov edx, 0
fucompi st(1)
fstp st(0)
setnp al
cmovne eax, edx
jmp 0x40e40a
fstp st(0)
jmp 0x40e408
fstp st(0)
jmp 0x40e408
fstp st(0)
jmp 0x40e408
fstp st(0)
lea esi, [esi]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_source_rectangle._n
call fcn.00401f80
mov eax, 0x8b8
call fcn.004013f0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], str.__d__d____d__d_
mov dword [esp + 4], eax
call fcn.00401260
mov dword [esp + 4], str.Unexpected_destination_rectangle__s._n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x10]
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8bc
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80004003
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xa
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8c2
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80004003
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 8
mov dword [ebp - 0x58], eax
mov eax, 0x8c5
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0xa
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8c9
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 4
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8cd
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8ce
call fcn.004013f0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], str.__d__d____d__d_
mov dword [esp + 4], eax
call fcn.00401260
xor edx, edx
cmp dword [ebp - 0x14], 0xa
mov ecx, dword [ebp - 0x1c]
je 0x40ec70
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], str.Unexpected_destination_rectangle__s._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x40000000
mov dword [ebp - 0x30], 0x3f800000
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8d3
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80070057
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0xbdcccccd
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x3f666666
mov dword [ebp - 0x30], 0x3f800000
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8d7
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80070057
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0x3f000000
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x3ecccccd
mov dword [ebp - 0x30], 0x3f800000
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8dc
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80070057
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x3f000000
mov dword [ebp - 0x34], 0x3ecccccd
mov dword [ebp - 0x30], 0x3dcccccd
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8e0
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x80070057
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0x3dcccccd
mov dword [ebp - 0x38], 0x3e4ccccd
mov dword [ebp - 0x34], 0x3f4ccccd
mov dword [ebp - 0x30], 0x3f666666
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8e4
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edx, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41c22c
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 0x14
mov dword [ebp - 0x58], eax
mov eax, 0x8e9
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8ea
call fcn.004013f0
fld dword [0x41950c]
fld dword [ebp - 0x3c]
fucompi st(1)
fstp st(0)
jp 0x40e950
jne 0x40e950
fld dword [0x419510]
fld dword [ebp - 0x38]
fucompi st(1)
fstp st(0)
jp 0x40e950
jne 0x40e950
fld dword [0x419514]
fld dword [ebp - 0x34]
fucompi st(1)
fstp st(0)
jp 0x40e950
jne 0x40e950
fld dword [ebp - 0x30]
fld dword [0x419508]
xor eax, eax
mov edx, 0
fucompi st(1)
fstp st(0)
setnp al
cmovne eax, edx
jmp 0x40e952
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_source_rectangle._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8ee
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8ef
call fcn.004013f0
fld dword [0x41950c]
fld dword [ebp - 0x3c]
fucompi st(1)
fstp st(0)
jp 0x40ea00
jne 0x40ea00
fld dword [0x419510]
fld dword [ebp - 0x38]
fucompi st(1)
fstp st(0)
jp 0x40ea00
jne 0x40ea00
fld dword [0x419514]
fld dword [ebp - 0x34]
fucompi st(1)
fstp st(0)
jp 0x40ea00
jne 0x40ea00
fld dword [ebp - 0x30]
fld dword [0x419508]
xor eax, eax
mov edx, 0
fucompi st(1)
fstp st(0)
setnp al
cmovne eax, edx
jmp 0x40ea02
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_source_rectangle._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x3e7
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0x3e8
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, 0x8f4
call fcn.004013f0
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 4
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, 0x8f8
call fcn.004013f0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, 0x8f9
call fcn.004013f0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], str.__d__d____d__d_
mov dword [esp + 4], eax
call fcn.00401260
xor edx, edx
cmp dword [ebp - 0x1c], 1
je 0x40ec48
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], str.Unexpected_destination_rectangle__s._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x14], 0x32
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 0x3e8
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov ebx, eax
mov eax, 0x8ff
call fcn.004013f0
xor eax, eax
cmp ebx, 0x80070057
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x64
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x10], 0x32
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov ebx, eax
call fcn.00414420
mov dword [eax], 0x41806d
mov dword [eax + 4], 0x903
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.00401f80
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x54]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x48]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x4c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x44]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x14], 0x3e7
jne 0x40eb0a
cmp dword [ebp - 0x18], 2
jne 0x40eb0a
xor edx, edx
cmp dword [ebp - 0x10], 0x3e8
sete dl
jmp 0x40eb0a
or ecx, dword [ebp - 0x18]
jne 0x40e678
xor edx, edx
cmp dword [ebp - 0x10], 0xa
sete dl
jmp 0x40e678