Function at 0x4e7250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x10c]
sub esp, 0x154
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x1e0
mov dword [esp + 0x18], 0x280
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], 0x57df40
mov dword [esp + 4], 0x57df4b
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
mov edi, eax
mov dword [ebp - 0x130], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
call fcn.004e51e0
mov esi, eax
mov dword [ebp - 0x12c], eax
mov eax, 0x49d
call fcn.004e5d30
xor eax, eax
test esi, esi
mov dword [esp + 4], str.Failed_to_create_a_ddraw_object._n
setne al
mov dword [esp], eax
call fcn.004e6560
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetClientRect]
sub esp, 8
mov dword [ebp - 0x110], eax
mov eax, 0x4a0
call fcn.004e5d30
mov dword [esp + 4], str.Failed_to_get_client_rect._n
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call fcn.004e6560
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
call dword [sym.imp.user32.dll_MapWindowPoints]
sub esp, 0x10
mov dword [ebp - 0x110], eax
mov eax, 0x4a2
call fcn.004e5d30
mov dword [esp + 4], str.Failed_to_map_client_rect._n
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [esi]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 8
call dword [eax + 0x50]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4a5
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_cooperative_level__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [esi]
lea edx, [ebp - 0x114]
mov dword [esp], esi
mov dword [esp + 8], edx
lea esi, [ebp - 0x110]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
call dword [eax + 0x10]
sub esp, 0x10
mov ebx, eax
mov eax, 0x4a8
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_create_clipper__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x4aa
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x887600cd
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 8], edi
lea edi, [ebp - 0x110]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4ac
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clipper_window__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x4ae
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_get_clip_list_size__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x110]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov edi, eax
mov eax, 0x4b1
call fcn.004e5d30
mov dword [esp + 8], edi
not edi
shr edi, 0x1f
mov dword [esp + 4], str.Failed_to_get_clip_list__hr__lx._n
mov dword [esp], edi
call fcn.004e6560
mov eax, 0x4b2
call fcn.004e5d30
mov eax, dword [ebx]
mov dword [esp + 4], str.Got_unexpected_structure_size__lx._n
cmp eax, 0x20
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e6560
mov eax, 0x4b3
call fcn.004e5d30
mov eax, dword [ebx + 4]
mov dword [esp + 4], str.Got_unexpected_type__lx._n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e6560
mov eax, 0x4b4
call fcn.004e5d30
mov eax, dword [ebx + 8]
mov dword [esp + 4], str.Got_unexpected_count__lu._n
test eax, eax
mov dword [esp + 8], eax
setne al
movzx eax, al
mov dword [esp], eax
call fcn.004e6560
mov eax, 0x4b5
call fcn.004e5d30
mov eax, dword [ebp - 0x100]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x104]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x108]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp], str.__d__d____d__d_
mov dword [esp + 4], eax
call fcn.004e5d50
mov edi, eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], str.__d__d____d__d_
mov dword [esp + 4], eax
call fcn.004e5d50
mov ecx, dword [ebp - 0x10c]
xor edx, edx
cmp dword [ebx + 0x10], ecx
je 0x4e8210
mov dword [esp], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Got_unexpected_bounding_rect__s__expected__s._n
call fcn.004e6560
mov eax, dword [sym.imp.msvcrt.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x120], eax
call eax
mov edi, dword [sym.imp.gdi32.dll_CreateRectRgn]
mov dword [esp + 0xc], 0xf0
mov dword [esp + 8], 0x140
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x10
mov ebx, eax
mov eax, 0x4bb
call fcn.004e5d30
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.Failed_to_create_region._n
setne al
mov dword [esp], eax
call fcn.004e6560
mov dword [esp + 0xc], 0x1e0
mov dword [esp + 8], 0x280
mov dword [esp + 4], 0xf0
mov dword [esp], 0x140
call edi
sub esp, 0x10
mov edi, eax
mov eax, 0x4bd
call fcn.004e5d30
xor eax, eax
test edi, edi
mov dword [esp + 4], str.Failed_to_create_region._n
setne al
mov dword [esp], eax
call fcn.004e6560
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov dword [esp + 0xc], 2
call dword [sym.imp.gdi32.dll_CombineRgn]
mov ecx, dword [sym.imp.gdi32.dll_GetRegionData]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x128], ecx
call ecx
sub esp, 0xc
mov dword [ebp - 0x110], eax
mov dword [esp], eax
mov dword [ebp - 0x124], eax
call esi
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x124]
mov esi, eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x128]
call ecx
sub esp, 0xc
mov dword [ebp - 0x110], eax
mov eax, 0x4c2
call fcn.004e5d30
mov dword [esp + 4], str.Failed_to_get_region_data._n
xor eax, eax
mov ecx, dword [ebp - 0x110]
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.004e6560
mov dword [esp], edi
mov edi, dword [sym.imp.gdi32.dll_DeleteObject]
call edi
sub esp, 4
mov dword [esp], ebx
call edi
mov eax, dword [ebp - 0x114]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4c8
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x88760237
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4ca
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clipper_window__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
mov eax, 0x4cc
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clip_list__hr__lx._n
mov dword [esp], ebx
lea ebx, [ebp - 0x88]
call fcn.004e6560
mov dword [esp], esi
xor esi, esi
mov eax, dword [ebp - 0x120]
call eax
lea edx, [ebp - 0x78]
mov eax, esi
mov ecx, 0x1b
mov edi, edx
mov dword [ebp - 0x7c], 0x280
lea edx, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x12c]
mov dword [ebp - 0x88], 0x7c
mov dword [ebp - 0x84], 0x1007
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x80], 0x1e0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], 0xff0000
mov dword [ebp - 0x2c], 0xff00
mov dword [ebp - 0x28], 0xff
mov eax, dword [edi]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0
call dword [eax + 0x18]
sub esp, 0x10
mov edi, eax
mov eax, 0x4de
call fcn.004e5d30
mov dword [esp + 8], edi
not edi
shr edi, 0x1f
mov dword [esp + 4], str.Failed_to_create_source_surface__hr__lx._n
mov dword [esp], edi
call fcn.004e6560
mov edi, dword [ebp - 0x12c]
lea edx, [ebp - 0x118]
mov eax, dword [edi]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0xc], 0
call dword [eax + 0x18]
sub esp, 0x10
mov edi, eax
mov eax, 0x4e0
call fcn.004e5d30
mov dword [esp + 8], edi
not edi
shr edi, 0x1f
mov dword [esp + 4], str.Failed_to_create_destination_surface__hr__lx._n
mov dword [esp], edi
call fcn.004e6560
lea edx, [ebp - 0xe8]
mov eax, esi
mov ecx, 0x18
mov edi, edx
lea esi, [ebp - 0xec]
mov dword [ebp - 0xec], 0x64
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x11c]
lea edi, [ebp - 0xec]
mov edx, dword [eax]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x1000400
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov esi, eax
mov eax, 0x4e5
call fcn.004e5d30
mov dword [esp + 8], esi
not esi
shr esi, 0x1f
mov dword [esp + 4], str.Failed_to_clear_source_surface__hr__lx._n
mov dword [esp], esi
call fcn.004e6560
mov eax, dword [ebp - 0x118]
mov edx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x1000400
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov esi, eax
mov eax, 0x4e7
call fcn.004e5d30
mov dword [esp + 8], esi
not esi
shr esi, 0x1f
mov dword [esp + 4], str.Failed_to_clear_destination_surface__hr__lx._n
mov dword [esp], esi
call fcn.004e6560
mov eax, dword [ebp - 0x11c]
mov edx, dword [eax]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x64]
sub esp, 0x14
mov ebx, eax
mov eax, 0x4ea
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_lock_source_surface__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, 0x4eb
call fcn.004e5d30
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], str.Got_unexpected_surface_pitch__lu._n
cmp eax, 0xa00
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x64]
mov dword [eax], 0xff0000ff
mov dword [eax + 4], 0xff0000ff
mov dword [eax + 8], 0xff00ff00
mov dword [eax + 0xc], 0xffff0000
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov dword [eax + 0xa00], 0xff0000ff
mov dword [eax + 0xa04], 0xff0000ff
mov dword [eax + 0xa08], 0xff00ff00
mov dword [eax + 0xa0c], 0xffff0000
mov dword [eax + 0xa10], 0xffffffff
mov dword [eax + 0xa14], 0xffffffff
mov dword [eax + 0x1400], 0xff0000ff
mov dword [eax + 0x1404], 0xff0000ff
mov dword [eax + 0x1408], 0xff00ff00
mov dword [eax + 0x140c], 0xffff0000
mov dword [eax + 0x1410], 0xffffffff
mov dword [eax + 0x1414], 0xffffffff
mov eax, dword [ebp - 0x11c]
mov edx, dword [eax]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
sub esp, 8
mov ebx, eax
mov eax, 0x4f1
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_unlock_source_surface__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 8
mov ebx, eax
mov eax, 0x4f4
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clipper__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xfc], 1
mov dword [ebp - 0xf4], 5
mov dword [ebp - 0xf8], 1
mov dword [ebp - 0xf0], 2
mov edx, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1000000
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x11c]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4f8
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_blit__hr__lx._n
mov dword [esp], ebx
xor ebx, ebx
mov edi, ebx
call fcn.004e6560
mov ecx, 0x3c
mov dword [ebp - 0x120], ecx
lea ebx, [edi*4]
mov esi, 0x50
mov dword [ebp - 0x128], edi
mov edi, ebx
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x118]
mov edx, esi
call fcn.004e6580
mov ebx, eax
call fcn.0054f6e0
mov ecx, 1
mov dword [eax], 0x57df88
mov dword [eax + 4], 0x500
mov eax, dword [edi + 0x589f60]
mov edx, eax
mov dword [ebp - 0x124], eax
mov eax, ebx
call fcn.004e50b0
mov edx, eax
mov eax, 1
test edx, edx
jne 0x4e7d34
mov edx, dword [edi + 0x589f20]
mov ecx, 1
mov eax, ebx
call fcn.004e50b0
mov edx, dword [0x628750]
test edx, edx
sete dl
test eax, eax
setne al
movzx eax, al
and eax, edx
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp - 0x120]
add edi, 4
mov dword [esp + 0xc], esi
add esi, 0xa0
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x124]
mov dword [esp + 4], str.Expected_color_0x_08x_at__u__u__got_0x_08x._n
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004e6560
cmp esi, 0x2d0
jne 0x4e7cc1
mov edi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x120]
add edi, 4
add ecx, 0x78
cmp edi, 0x10
jne 0x4e7ca7
mov eax, dword [ebp - 0x118]
lea esi, [ebp - 0xec]
mov dword [ebp - 0x9c], 0xff0000ff
mov edx, dword [eax]
mov dword [esp + 0x14], esi
xor esi, esi
mov dword [esp + 0x10], 0x1000400
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov ebx, eax
mov eax, 0x508
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_clear_destination_surface__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov ecx, 0x3c
mov dword [ebp - 0x120], ecx
lea edi, [esi*4 + 0x589ee0]
mov ebx, 0x50
mov dword [ebp - 0x128], esi
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x118]
mov edx, ebx
add edi, 4
call fcn.004e6580
mov esi, eax
call fcn.0054f6e0
mov ecx, 1
mov dword [eax], 0x57df88
mov dword [eax + 4], 0x510
mov edx, dword [edi - 4]
mov eax, esi
mov dword [ebp - 0x124], edx
call fcn.004e50b0
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x120]
mov dword [esp + 0xc], ebx
add ebx, 0xa0
mov dword [esp + 0x10], ecx
mov edx, dword [ebp - 0x124]
mov dword [esp + 4], str.Expected_color_0x_08x_at__u__u__got_0x_08x._n
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.004e6560
cmp ebx, 0x2d0
jne 0x4e7e19
mov esi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x120]
add esi, 4
add ecx, 0x78
cmp esi, 0x10
jne 0x4e7e01
mov eax, dword [ebp - 0x118]
lea esi, [ebp - 0x110]
mov edx, dword [eax]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x11c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0x18
mov ebx, eax
mov eax, 0x516
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x8876023e
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp - 0x130]
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x519
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clipper_window__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x51b
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_get_clip_list_size__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov dword [esp], edi
lea edi, [ebp - 0xec]
call dword [sym.imp.user32.dll_DestroyWindow]
mov eax, dword [ebp - 0x114]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x51e
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x80004005
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ebx, eax
mov eax, 0x520
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clipper_window__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x522
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_get_clip_list_size__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ebx, eax
mov eax, 0x524
call fcn.004e5d30
mov dword [esp + 8], ebx
not ebx
shr ebx, 0x1f
mov dword [esp + 4], str.Failed_to_set_clip_list__hr__lx._n
mov dword [esp], ebx
call fcn.004e6560
mov eax, dword [ebp - 0x114]
mov edx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov ebx, eax
mov eax, 0x526
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x887600cd
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x118]
mov edx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x1000400
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0x18
mov ebx, eax
mov eax, 0x528
call fcn.004e5d30
xor eax, eax
cmp ebx, 0x887600cd
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Got_unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004e6560
mov eax, dword [ebp - 0x118]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x11c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x114]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, eax
mov eax, 0x52d
call fcn.004e5d30
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Clipper_has__lu_references_left._n
mov dword [esp], eax
call fcn.004e6560
mov edi, dword [ebp - 0x12c]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0x104]
cmp dword [ebx + 0x18], ecx
jne 0x4e764c
mov ecx, dword [ebp - 0x108]
cmp dword [ebx + 0x14], ecx
jne 0x4e764c
xor edx, edx
mov ecx, dword [ebp - 0x100]
cmp dword [ebx + 0x1c], ecx
sete dl
jmp 0x4e764c