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

Disassembly:
mov eax, dword [ecx + 0x6c]
cmp eax, 1
jne 0x49ed0d
jmp 0x49f0b0
test eax, eax
jne 0x49ed16
jmp 0x49ed30
cmp eax, 2
jne 0x49ed20
jmp 0x49f6a0
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bb03a
push eax
mov dword fs:[0], esp
sub esp, 0x60
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.0049f3f0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp eax, 4
ja case.0x49ed77.1
jmp dword [eax*4 + 0x49f094]
mov eax, dword [esp + 0x30]
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49edfe
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax]
lea eax, [edx + edx]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49edfe
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49edfe
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49edfe
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x54]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049f560
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [0x638658]
mov dword [esp + 0x30], edx
lea ecx, [eax + 0x2ac4]
call fcn.0042a460
push 0x4b90
mov dword [esi + 0x7c], eax
call fcn.005985a0
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x78], edi
je 0x49ee6c
mov ecx, eax
call fcn.004992c0
jmp 0x49ee6e
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [eax + 0x5c], edi
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x78], 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.005987ea
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 0x49eebe
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x40], edi
jmp 0x49eec4
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 + 0x2c]
push esi
push eax
push 0x52000000
push str.VideoWindow
push edi
call dword [edx + 0x54]
test eax, eax
je 0x49f06f
mov ecx, dword [esi + 0x3c]
push edi
call fcn.0049b610
push ecx
lea edx, [esi + 0x64]
mov ebx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.005985d4
push ebx
call fcn.004503b0
mov ecx, dword [esi + 0x3c]
add esp, 8
call int.0049b100
mov ecx, dword [esi + 0x3c]
push 1
call fcn.0059bff8
push 5
mov ecx, esi
call fcn.0059bff8
mov ecx, esi
call fcn.0049f5e0
mov ecx, dword [esi + 0x3c]
call fcn.0049b500
mov ecx, dword [esi + 0x3c]
call fcn.0059c061
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
call fcn.00595b8f
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49f03a
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + 0x70], edi
jne 0x49f03a
cmp ebx, edi
jne 0x49f03a
push 1
push edi
push edi
lea edx, [esp + 0x60]
push edi
push edx
call ebp
test eax, eax
jle 0x49efc3
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x49efac
cmp eax, 0x100
je 0x49efac
lea eax, [esp + 0x54]
push eax
jmp 0x49efbd
cmp dword [esi + 0x58], edi
je 0x49efb8
mov ebx, 1
jmp 0x49efc3
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], edi
je 0x49f025
lea edx, [esp + 0x18]
push edx
call fcn.00595b8f
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, esp
lea edx, [esp + 0x24]
mov dword [esp + 0x20], esp
push edx
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.0049fb60
mov ecx, dword [eax]
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 0x49f025
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 0x49ef6c
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x49f06f
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49f06f
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x638658]
push eax
add ecx, 0x2ac4
call fcn.0042a4a0
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 0x49f07d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bb062
push eax
mov dword fs:[0], esp
sub esp, 0x60
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.0049f3f0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x60]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp eax, 4
ja case.0x49f0f7.1
jmp dword [eax*4 + 0x49f3d4]
mov eax, dword [esp + 0x30]
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, edi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49f17e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + eax]
lea eax, [edx + edx]
sub ecx, ebx
sub eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49f17e
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49f17e
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
add ecx, ebx
add eax, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x49f17e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], eax
lea eax, [esp + 0x54]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049f560
mov ecx, dword [eax]
push 0x3c
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x7c], 0x3e7
mov dword [esp + 0x34], edx
call fcn.005985a0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x78], ebx
je 0x49f1e7
mov ecx, edi
call fcn.00598f37
mov dword [edi], vtable.CShockwaveFlash.0
mov ecx, edi
jmp 0x49f1e9
xor ecx, ecx
mov eax, dword [esi + 0x7c]
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x34]
push esi
push eax
push 0x52000000
or edi, 0xffffffff
push str.FlashWindow
push 0x5c21d8
mov dword [esp + 0x9c], edi
mov dword [esi + 0x40], ecx
call fcn.00575342
test eax, eax
je 0x49f3ae
push ecx
lea edx, [esi + 0x64]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005985d4
lea eax, [esp + 0x14]
push eax
call fcn.004503b0
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push eax
mov dword [esp + 0x7c], 1
call fcn.0044f6d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], edi
call fcn.0059885f
mov ecx, dword [esi + 0x40]
push str.high
call fcn.0044f7f0
push 5
mov ecx, esi
call fcn.0059bff8
mov ecx, esi
call fcn.0049f5e0
mov ecx, dword [esi + 0x40]
call fcn.0044f6f0
mov ecx, dword [esi + 0x40]
call fcn.0059c061
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
mov dword [esi + 0x84], ebx
call fcn.00595b8f
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 0x49f37d
cmp dword [esi + 0x84], ebx
jne 0x49f37d
cmp edi, ebx
jne 0x49f37d
push 1
push ebx
push ebx
lea ecx, [esp + 0x60]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x49f30a
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x49f2f3
cmp eax, 0x100
je 0x49f2f3
lea edx, [esp + 0x54]
push edx
jmp 0x49f304
cmp dword [esi + 0x58], ebx
je 0x49f2ff
mov edi, 1
jmp 0x49f30a
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebx
je 0x49f36c
lea ecx, [esp + 0x10]
push ecx
call fcn.00595b8f
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x18]
mov eax, esp
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x20], esp
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.0049fb60
mov ecx, dword [eax]
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 0x49f36c
mov edi, 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x49f2b2
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x49f3ae
mov edx, dword [eax + 0x1c]
push edx
call ebp
test eax, eax
je 0x49f3ae
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x638658]
push eax
add ecx, 0x2ac4
call fcn.0042a4a0
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 0x49f3bc
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bb0e7
push eax
mov dword fs:[0], esp
sub esp, 0x530
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
call fcn.0049f3f0
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x38]
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.0x49f6ea.1
jmp dword [eax*4 + 0x49f9c4]
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 0x49f771
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 0x49f771
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
sub ecx, edx
sub eax, ebp
add ecx, ebx
add eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x49f771
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 0x49f771
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 + 0x7c]
push eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.0049f560
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]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0059fa10
lea ecx, [esp + 0xe4]
mov edi, eax
call fcn.00423480
xor ebp, ebp
lea edx, [esi + 0x64]
push ebp
push 0x17
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x55c], ebp
call fcn.005985d4
lea eax, [esp + 0x30]
push eax
call fcn.004503b0
add esp, 8
mov ecx, eax
mov byte [esp + 0x554], 1
call fcn.00404f10
push eax
lea ecx, [esp + 0xf4]
call fcn.00423940
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], 0
sete bl
call fcn.0059885f
test bl, bl
je 0x49f984
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], vtable.CPalette.0
mov ecx, dword [edi + 4]
mov byte [esp + 0x548], 2
push ecx
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
push eax
lea ecx, [esp + 0x28]
call fcn.005a03f0
push ebp
push 1
lea edx, [esp + 0x2c]
push 1
push edx
push ebp
push edi
lea ecx, [esp + 0x94]
call fcn.004078b0
push 1
mov ecx, esi
mov byte [esp + 0x54c], 3
call fcn.0059bff8
lea eax, [esp + 0x30]
push ebp
push eax
push edi
lea ecx, [esp + 0xf0]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call fcn.004251a0
push 1
lea ecx, [esp + 0x80]
call fcn.0059fc2e
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
call fcn.00595b8f
push 1
push ebp
push ebp
lea edx, [esp + 0x5c]
push ebp
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jle 0x49f8f5
mov eax, dword [esp + 0x54]
cmp eax, 0x201
je 0x49f8de
cmp eax, 0x100
je 0x49f8de
lea eax, [esp + 0x50]
push eax
jmp 0x49f8ef
cmp dword [esi + 0x58], ebp
je 0x49f8ea
mov ebx, 1
jmp 0x49f8f5
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebp
je 0x49f952
lea edx, [esp + 0x4c]
push edx
call fcn.00595b8f
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov eax, esp
lea edx, [esp + 0x34]
mov dword [esp + 0x4c], esp
push edx
mov dword [eax], ecx
lea ecx, [esp + 0x34]
call fcn.0049fb60
mov ecx, dword [eax]
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 0x49f95a
cmp ebx, ebp
je 0x49f8b1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x548], 2
call fcn.00407c00
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 4
call fcn.005a0447
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xe4]
mov dword [esp + 0x548], 0xffffffff
call fcn.00423540
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x53c
ret