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

Disassembly:
mov eax, dword [ecx + 0x6c]
cmp eax, 1
jne 0x4ed95d
jmp 0x4edd00
test eax, eax
jne 0x4ed966
jmp 0x4ed980
cmp eax, 2
jne 0x4ed970
jmp 0x4ee2f0
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6151aa
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.004ee040
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.0x4ed9c7.1
jmp dword [eax*4 + 0x4edcec]
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 0x4eda4e
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 0x4eda4e
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 0x4eda4e
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 0x4eda4e
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.004ee1b0
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 [0x6a1210]
mov dword [esp + 0x30], edx
lea ecx, [eax + 0x2b28]
call fcn.0042c0a0
push 0x4b90
mov dword [esi + 0x7c], eax
call fcn.005eae36
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x78], edi
je 0x4edabc
mov ecx, eax
call fcn.004e8550
jmp 0x4edabe
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.005eb080
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 0x4edb0e
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x40], edi
jmp 0x4edb14
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 0x4edcc8
mov ecx, dword [esi + 0x3c]
push edi
call fcn.004ea8a0
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.005eae6a
push ebx
call fcn.00477670
mov ecx, dword [esi + 0x3c]
add esp, 8
call fcn.004ea380
mov ecx, dword [esi + 0x3c]
push 1
call fcn.005eea0d
push 5
mov ecx, esi
call fcn.005eea0d
mov ecx, esi
call fcn.004ee230
mov ecx, dword [esi + 0x3c]
call fcn.004ea790
mov ecx, dword [esi + 0x3c]
call fcn.005eea76
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
call fcn.005e79d8
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x4edc93
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4edc93
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 0x3c]
cmp eax, edi
je 0x4edc93
cmp dword [eax + 0xb4], edi
jne 0x4edc93
cmp ebx, edi
jne 0x4edc93
push 1
push edi
push edi
lea eax, [esp + 0x60]
push edi
push eax
call ebp
test eax, eax
jle 0x4edc26
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x4edc0f
cmp eax, 0x100
je 0x4edc0f
lea ecx, [esp + 0x54]
push ecx
jmp 0x4edc20
cmp dword [esi + 0x58], edi
je 0x4edc1b
mov ebx, 1
jmp 0x4edc26
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], edi
je 0x4edc88
lea eax, [esp + 0x18]
push eax
call fcn.005e79d8
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x18], ecx
mov eax, esp
mov dword [esp + 0x20], esp
lea ecx, [esp + 0x18]
mov dword [eax], edx
lea eax, [esp + 0x24]
push eax
call fcn.004ee7b0
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 0x4edc88
mov ebx, 1
mov eax, dword [esi + 0x3c]
cmp eax, edi
jne 0x4edbb2
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x4edcc8
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4edcc8
mov ecx, dword [esi + 0x7c]
mov edx, dword [0x6a1210]
push ecx
lea ecx, [edx + 0x2b28]
call fcn.0042c0e0
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x7c], edi
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x4edcd6
mov edx, dword [ecx]
push 1
call dword [edx + 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 0x6151d2
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.004ee040
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.0x4edd47.1
jmp dword [eax*4 + 0x4ee024]
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 0x4eddce
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 0x4eddce
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 0x4eddce
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 0x4eddce
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.004ee1b0
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.005eae36
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x78], ebx
je 0x4ede37
mov ecx, edi
call fcn.005eb7f4
mov dword [edi], vtable.CShockwaveFlash.0
mov ecx, edi
jmp 0x4ede39
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 0x61e5d8
mov dword [esp + 0x9c], edi
mov dword [esi + 0x40], ecx
call fcn.005c6f25
test eax, eax
je 0x4edffe
push ecx
lea edx, [esi + 0x64]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.005eae6a
lea eax, [esp + 0x14]
push eax
call fcn.00477670
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esi + 0x40]
push eax
mov dword [esp + 0x7c], 1
call fcn.00476970
lea ecx, [esp + 0x10]
mov dword [esp + 0x78], edi
call fcn.005eb0f5
mov ecx, dword [esi + 0x40]
push str.high
call fcn.00476a90
push 5
mov ecx, esi
call fcn.005eea0d
mov ecx, esi
call fcn.004ee230
mov ecx, dword [esi + 0x40]
call fcn.00476990
mov ecx, dword [esi + 0x40]
call fcn.005eea76
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
mov dword [esi + 0x84], ebx
call fcn.005e79d8
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 0x4edfcd
cmp dword [esi + 0x84], ebx
jne 0x4edfcd
cmp edi, ebx
jne 0x4edfcd
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 0x4edf5a
mov eax, dword [esp + 0x58]
cmp eax, 0x201
je 0x4edf43
cmp eax, 0x100
je 0x4edf43
lea edx, [esp + 0x54]
push edx
jmp 0x4edf54
cmp dword [esi + 0x58], ebx
je 0x4edf4f
mov edi, 1
jmp 0x4edf5a
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebx
je 0x4edfbc
lea ecx, [esp + 0x10]
push ecx
call fcn.005e79d8
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.004ee7b0
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 0x4edfbc
mov edi, 1
mov eax, dword [esi + 0x40]
mov ecx, dword [eax + 0x1c]
push ecx
call ebp
test eax, eax
jne 0x4edf02
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4edffe
mov edx, dword [eax + 0x1c]
push edx
call ebp
test eax, eax
je 0x4edffe
mov eax, dword [esi + 0x7c]
mov ecx, dword [0x6a1210]
push eax
add ecx, 0x2b28
call fcn.0042c0e0
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 0x4ee00c
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 0x615257
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.004ee040
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.0x4ee33a.1
jmp dword [eax*4 + 0x4ee614]
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 0x4ee3c1
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 0x4ee3c1
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 0x4ee3c1
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 0x4ee3c1
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.004ee1b0
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.005f244b
lea ecx, [esp + 0xe4]
mov edi, eax
call fcn.00424700
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.005eae6a
lea eax, [esp + 0x30]
push eax
call fcn.00477670
add esp, 8
mov ecx, eax
mov byte [esp + 0x554], 1
call fcn.00404ee0
push eax
lea ecx, [esp + 0xf4]
call fcn.00424bc0
test eax, eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], 0
sete bl
call fcn.005eb0f5
test bl, bl
je 0x4ee5d4
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.005f2ee7
push ebp
push 1
lea edx, [esp + 0x2c]
push 1
push edx
push ebp
push edi
lea ecx, [esp + 0x94]
call fcn.00407a10
push 1
mov ecx, esi
mov byte [esp + 0x54c], 3
call fcn.005eea0d
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.00426420
push 1
lea ecx, [esp + 0x80]
call fcn.005f2669
lea ecx, [esp + 0x20]
xor ebx, ebx
push ecx
call fcn.005e79d8
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 0x4ee545
mov eax, dword [esp + 0x54]
cmp eax, 0x201
je 0x4ee52e
cmp eax, 0x100
je 0x4ee52e
lea eax, [esp + 0x50]
push eax
jmp 0x4ee53f
cmp dword [esi + 0x58], ebp
je 0x4ee53a
mov ebx, 1
jmp 0x4ee545
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi + 0x88], ebp
je 0x4ee5a2
lea edx, [esp + 0x4c]
push edx
call fcn.005e79d8
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.004ee7b0
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 0x4ee5aa
cmp ebx, ebp
je 0x4ee501
lea ecx, [esp + 0x7c]
mov byte [esp + 0x548], 2
call fcn.00407d60
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 4
call fcn.005f2f3e
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.004247c0
mov ecx, dword [esp + 0x540]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x53c
ret