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

Disassembly:
mov eax, dword [ecx + 0x6c]
cmp eax, 1
jne 0x49b7dd
jmp 0x49bb60
test eax, eax
jne 0x49b7e6
jmp 0x49b800
cmp eax, 2
jne 0x49b7f0
jmp 0x49c130
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b1a4a
push eax
mov dword fs:[0], esp
sub esp, 0x54
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
call fcn.0049be80
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp eax, 4
ja case.0x49b847.1
jmp dword [eax*4 + 0x49bb48]
mov eax, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49b8ce
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax]
lea eax, [edx + edx]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49b8ce
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49b8ce
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49b8ce
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x48]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049bff0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [0x62cf08]
mov dword [esp + 0x24], edx
lea ecx, [eax + 0x2abc]
call fcn.004285b0
push 0x4b90
mov dword [esi + 0x7c], eax
call fcn.0058f420
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x6c], edi
je 0x49b93c
mov ecx, eax
call fcn.00495fa0
jmp 0x49b93e
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [eax + 0x5c], edi
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x6c], 0xffffffff
mov dword [ecx + 0x70], edi
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x44], edi
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], edi
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 0x4c], edi
mov ecx, dword [esi + 0x3c]
add ecx, 0x68
call fcn.0058f66a
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x60], edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x54]
mov dword [eax + 0x50], ecx
mov eax, dword [esi + 0x60]
cmp eax, 3
jne 0x49b98e
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x40], edi
jmp 0x49b994
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x40], edi
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x3c]
push edi
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push esi
push eax
push 0x52000000
push str.VideoWindow
push edi
call dword [edx + 0x54]
test eax, eax
je 0x49bb24
mov ecx, dword [esi + 0x3c]
push edi
call fcn.00498240
push ecx
lea edx, [esi + 0x64]
mov ebx, esp
mov dword [esp + 0x18], esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0058f454
push ebx
call fcn.0044dac0
mov ecx, dword [esi + 0x3c]
add esp, 8
call fcn.00497d50
mov ecx, dword [esi + 0x3c]
push 1
call fcn.00592e77
push 5
mov ecx, esi
call fcn.00592e77
mov ecx, esi
call fcn.0049c070
mov ecx, dword [esi + 0x3c]
call fcn.00498140
mov ecx, dword [esi + 0x3c]
call fcn.00592ee0
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
call fcn.0058ca0f
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49baef
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + 0x70], edi
jne 0x49baef
cmp ebx, edi
jne 0x49baef
push 1
push edi
push edi
lea edx, [esp + 0x54]
push edi
push edx
call ebp
test eax, eax
jle 0x49ba93
mov eax, dword [esp + 0x4c]
cmp eax, 0x201
je 0x49ba7c
cmp eax, 0x100
je 0x49ba7c
lea eax, [esp + 0x48]
push eax
jmp 0x49ba8d
cmp dword [esi + 0x58], edi
je 0x49ba88
mov ebx, 1
jmp 0x49ba93
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], edi
je 0x49bada
lea edx, [esp + 0x14]
push edx
call fcn.0058ca0f
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jle 0x49bada
mov ebx, 1
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x49ba3c
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x49bb24
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49bb24
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x62cf08]
push eax
add ecx, 0x2abc
call fcn.004285f0
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x7c], edi
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x49bb32
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b1a72
push eax
mov dword fs:[0], esp
sub esp, 0x54
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
call fcn.0049be80
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp eax, 4
ja case.0x49bba7.1
jmp dword [eax*4 + 0x49be68]
mov eax, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49bc2e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax]
lea eax, [edx + edx]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49bc2e
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49bc2e
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add ecx, ebx
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x49bc2e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x48]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049bff0
mov ecx, dword [eax]
push 0x3c
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov dword [esi + 0x7c], 0x3e7
call fcn.0058f420
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x6c], ebx
je 0x49bc97
mov ecx, edi
call fcn.0058fdb7
mov dword [edi], vtable.CShockwaveFlash.0
mov ecx, edi
jmp 0x49bc99
xor ecx, ecx
mov eax, dword [esi + 0x7c]
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x28]
push esi
push eax
push 0x52000000
or edi, 0xffffffff
push str.FlashWindow
push 0x5b91c8
mov dword [esp + 0x90], edi
mov dword [esi + 0x40], ecx
call fcn.0056c192
test eax, eax
je 0x49be43
push ecx
lea edx, [esi + 0x64]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0058f454
lea eax, [esp + 0x14]
push eax
call fcn.0044dac0
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push eax
mov dword [esp + 0x70], 1
call fcn.0044cde0
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], edi
call fcn.0058f6df
mov ecx, dword [esi + 0x40]
push str.high
call fcn.0044cf00
push 5
mov ecx, esi
call fcn.00592e77
mov ecx, esi
call fcn.0049c070
mov ecx, dword [esi + 0x40]
call fcn.0044ce00
mov ecx, dword [esi + 0x40]
call fcn.00592ee0
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
mov dword [esi + 0x84], ebx
call fcn.0058ca0f
mov edx, dword [esi + 0x40]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [edx + 0x1c]
push eax
call ebp
test eax, eax
je 0x49be12
cmp dword [esi + 0x84], ebx
jne 0x49be12
cmp edi, ebx
jne 0x49be12
push 1
push ebx
push ebx
lea ecx, [esp + 0x54]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x49bdba
mov eax, dword [esp + 0x4c]
cmp eax, 0x201
je 0x49bda3
cmp eax, 0x100
je 0x49bda3
lea edx, [esp + 0x48]
push edx
jmp 0x49bdb4
cmp dword [esi + 0x58], ebx
je 0x49bdaf
mov edi, 1
jmp 0x49bdba
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebx
je 0x49be01
lea ecx, [esp + 0x10]
push ecx
call fcn.0058ca0f
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jle 0x49be01
mov edi, 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x49bd62
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x49be43
mov edx, dword [eax + 0x1c]
push edx
call ebp
test eax, eax
je 0x49be43
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x62cf08]
push eax
add ecx, 0x2abc
call fcn.004285f0
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x7c], ebx
mov edx, dword [ecx]
call dword [edx + 0x58]
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x49be51
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b1af7
push eax
mov dword fs:[0], esp
sub esp, 0x518
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
mov esi, ecx
call fcn.0049be80
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp eax, 4
ja case.0x49c17a.1
jmp dword [eax*4 + 0x49c430]
mov eax, dword [esp + 0x1c]
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
sub eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, ebx
add eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x49c201
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax]
lea eax, [edx + edx]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x49c201
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x49c201
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add ecx, ebx
add eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x49c201
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x4c]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049bff0
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], edx
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00596890
lea ecx, [esp + 0xcc]
mov edi, eax
call fcn.00421860
xor ebp, ebp
lea edx, [esi + 0x64]
push ebp
push 0x17
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov dword [esp + 0x544], ebp
call fcn.0058f454
lea eax, [esp + 0x30]
push eax
call fcn.0044dac0
add esp, 8
mov ecx, eax
mov byte [esp + 0x53c], 1
call fcn.00404e50
push eax
lea ecx, [esp + 0xdc]
call fcn.00421d00
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x530], 0
sete bl
call fcn.0058f6df
test bl, bl
je 0x49c3f2
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], vtable.CPalette.0
mov ecx, dword [edi + 4]
mov byte [esp + 0x530], 2
push ecx
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
push eax
lea ecx, [esp + 0x28]
call fcn.00597270
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push edx
push ebp
push eax
push edi
lea ecx, [esp + 0x78]
call fcn.004079b0
push 1
mov ecx, esi
mov byte [esp + 0x534], 3
call fcn.00592e77
lea ecx, [esp + 0x3c]
push ebp
push ecx
push edi
lea ecx, [esp + 0xd8]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call fcn.00423420
push 1
lea ecx, [esp + 0x6c]
call fcn.00596aae
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
call fcn.0058ca0f
push 1
push ebp
push ebp
lea eax, [esp + 0x58]
push ebp
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x49c37e
mov eax, dword [esp + 0x50]
cmp eax, 0x201
je 0x49c367
cmp eax, 0x100
je 0x49c367
lea ecx, [esp + 0x4c]
push ecx
jmp 0x49c378
cmp dword [esi + 0x58], ebp
je 0x49c373
mov ebx, 1
jmp 0x49c37e
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebp
je 0x49c3c0
lea eax, [esp + 0x3c]
push eax
call fcn.0058ca0f
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edx + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8c]
shl edx, 2
sub ecx, edx
cmp ecx, eax
jg 0x49c3c8
cmp ebx, ebp
je 0x49c33a
lea ecx, [esp + 0x68]
mov byte [esp + 0x530], 2
call fcn.00407ba0
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x530], 4
call fcn.005972c7
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xcc]
mov dword [esp + 0x530], 0xffffffff
call fcn.00421920
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x524
ret